mirror of
https://github.com/deavminet/dnetd
synced 2024-09-21 17:53:39 +02:00
Allow server user listing
This commit is contained in:
parent
d7d298820c
commit
d38cc17aa4
@ -503,7 +503,8 @@ public class DConnection : Thread
|
|||||||
reply = [true];
|
reply = [true];
|
||||||
}
|
}
|
||||||
/* If `list` command (requires: authed, client) */
|
/* If `list` command (requires: authed, client) */
|
||||||
else if(command == Command.LIST && hasAuthed && connType == ConnectionType.CLIENT)
|
/* TODO: Last condition not needed if you are authed you will always have last condition true x or y) */
|
||||||
|
else if(command == Command.LIST && hasAuthed && (connType == ConnectionType.CLIENT || connType == ConnectionType.SERVER))
|
||||||
{
|
{
|
||||||
/* Get all channels */
|
/* Get all channels */
|
||||||
DChannel[] channels = server.getChannels();
|
DChannel[] channels = server.getChannels();
|
||||||
|
Loading…
Reference in New Issue
Block a user