1
0
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:
Tristan B. Kildaire 2021-01-30 18:12:06 +02:00
parent d7d298820c
commit d38cc17aa4

View File

@ -503,7 +503,8 @@ public class DConnection : Thread
reply = [true];
}
/* 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 */
DChannel[] channels = server.getChannels();