From d38cc17aa424b62465535f4273fca01e19af81ee Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Sat, 30 Jan 2021 18:12:06 +0200 Subject: [PATCH] Allow server user listing --- source/dnetd/dconnection.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/dnetd/dconnection.d b/source/dnetd/dconnection.d index 330d4fb..3a8e1e3 100644 --- a/source/dnetd/dconnection.d +++ b/source/dnetd/dconnection.d @@ -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();