1
0
mirror of https://github.com/deavminet/dnetd synced 2024-09-21 09:43:37 +02:00

Updated auth code

This commit is contained in:
Tristan 🅱. Kildaire 2020-09-23 10:57:52 +02:00
parent e674538415
commit e36103c153

View File

@ -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)