From e36103c1533b1470c4acd0650a73c31fcf2707b5 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 10:57:52 +0200 Subject: [PATCH] Updated auth code --- source/dnetd/dconnection.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dnetd/dconnection.d b/source/dnetd/dconnection.d index e06bb35..21063f2 100644 --- a/source/dnetd/dconnection.d +++ b/source/dnetd/dconnection.d @@ -96,7 +96,7 @@ public class DConnection : Thread /* Get the username and password */ string username = cast(string)message.data[2..usernameLength]; - string password = cast(string)message.data[cast(ubyte)2+usernameLength..message.data.length]; + string password = cast(string)message.data[cast(ulong)2+usernameLength..message.data.length]; } /* If `link` command (requires: unauthed) */ else if(commandByte == 1 && !hasAuthed)