mirror of
https://github.com/deavminet/dnetd
synced 2024-09-21 17:53:39 +02:00
Implemented memberinfo
command
This commit is contained in:
parent
471e683464
commit
8ee4fdf3b5
@ -612,7 +612,22 @@ public class DConnection : Thread
|
|||||||
/* If `memberinfo` command (requires: authed, client) */
|
/* If `memberinfo` command (requires: authed, client) */
|
||||||
else if(command == Command.MEMBER_INFO && hasAuthed && connType == ConnectionType.CLIENT)
|
else if(command == Command.MEMBER_INFO && hasAuthed && connType == ConnectionType.CLIENT)
|
||||||
{
|
{
|
||||||
|
/* Status */
|
||||||
|
bool status = true;
|
||||||
|
|
||||||
/* TODO: Implement me */
|
/* 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) */
|
/* If `status` command (requires: authed, client) */
|
||||||
else if(command == Command.STATUS && hasAuthed && connType == ConnectionType.CLIENT)
|
else if(command == Command.STATUS && hasAuthed && connType == ConnectionType.CLIENT)
|
||||||
|
Loading…
Reference in New Issue
Block a user