mirror of
https://github.com/besterprotocol/besterd
synced 2023-12-13 21:00:32 +01:00
Added missing comment for function.
This commit is contained in:
parent
55d4dfabe2
commit
8fc41ac50c
1 changed files with 9 additions and 0 deletions
|
@ -32,6 +32,10 @@ public final class BesterInformerClient : Thread
|
|||
this.handlerSocket = handlerSocket;
|
||||
}
|
||||
|
||||
/**
|
||||
* Run's the command specified in `commandBlock` and sets the
|
||||
* response in the variable pointed to by `result`.
|
||||
*/
|
||||
private bool runCommand(JSONValue commandBlock, ref JSONValue result)
|
||||
{
|
||||
try
|
||||
|
@ -53,6 +57,11 @@ public final class BesterInformerClient : Thread
|
|||
string username = commandBlock["data"].str();
|
||||
result = isClient(server, username);
|
||||
}
|
||||
/* Check if the command is `serverInfo` */
|
||||
else if(cmp(commandType, "serverInfo") == 0)
|
||||
{
|
||||
result = getServerInfo(server);
|
||||
}
|
||||
/* TODO: Add any more new command here */
|
||||
/* If the command is invalid */
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue