mirror of
https://github.com/deavminet/dnetd
synced 2024-09-21 17:53:39 +02:00
Send back [nameLen, name]
This commit is contained in:
parent
67088afaa2
commit
49229547b1
@ -391,6 +391,11 @@ public class DConnection : Thread
|
|||||||
hasAuthed = true;
|
hasAuthed = true;
|
||||||
|
|
||||||
reply ~= [0]; // Testing for now
|
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) */
|
/* If `register` command (requires: unauthed, client) */
|
||||||
else if(command == Command.REGISTER && !hasAuthed && connType == ConnectionType.CLIENT)
|
else if(command == Command.REGISTER && !hasAuthed && connType == ConnectionType.CLIENT)
|
||||||
|
Loading…
Reference in New Issue
Block a user