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

Implemented memberinfo command

This commit is contained in:
Tristan B. Kildaire 2020-10-15 14:07:01 +02:00
parent 471e683464
commit 8ee4fdf3b5

View File

@ -612,7 +612,22 @@ public class DConnection : Thread
/* If `memberinfo` command (requires: authed, client) */
else if(command == Command.MEMBER_INFO && hasAuthed && connType == ConnectionType.CLIENT)
{
/* Status */
bool status = true;
/* TODO: Implement me */
/* TODO: fetch longontime, serveron, status */
string logontime;
string serveron;
/* Encode the reply */
reply ~= [status];
reply ~= [cast(byte)logontime.length];
reply ~= logontime;
reply ~= [cast(byte)serveron.length];
reply ~= serveron;
reply ~= getStatusMessage();
}
/* If `status` command (requires: authed, client) */
else if(command == Command.STATUS && hasAuthed && connType == ConnectionType.CLIENT)