From 736304ed941ffdc0111332fc4c6738cbc8771380 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20=F0=9F=85=B1=2E=20Kildaire?= <21629986@sun.ac.za> Date: Wed, 23 Sep 2020 21:53:25 +0200 Subject: [PATCH] Fixed: command requires an authenticated connection --- source/dnetd/dconnection.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/dnetd/dconnection.d b/source/dnetd/dconnection.d index fcafe7a..b38cd2f 100644 --- a/source/dnetd/dconnection.d +++ b/source/dnetd/dconnection.d @@ -165,15 +165,15 @@ public class DConnection : Thread /* If `link` command (requires: unauthed) */ else if(commandByte == 1 && !hasAuthed) { - + /* TODO: Implement me later */ } - /* */ + /* If `register` command (requires: unauthed) */ else if(commandByte == 2 && !hasAuthed) { } /* If `join` command (requires: authed) */ - else if(commandByte == 3 && !hasAuthed) + else if(commandByte == 3 && hasAuthed) { /* Get the channel names */ string channelList = cast(string)message.data[1..message.data.length];