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

Send back [nameLen, name]

This commit is contained in:
Tristan B. Kildaire 2021-01-30 13:00:13 +02:00
parent 67088afaa2
commit 49229547b1

View File

@ -391,6 +391,11 @@ public class DConnection : Thread
hasAuthed = true;
reply ~= [0]; // Testing for now
/* Send [nameLen, name] */
string serverName = server.getGeneralConfig().getName();
reply ~= [cast(byte)serverName.length];
reply ~= serverName;
}
/* If `register` command (requires: unauthed, client) */
else if(command == Command.REGISTER && !hasAuthed && connType == ConnectionType.CLIENT)