1
0
Fork 0
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:
Tristan B. Kildaire 2020-05-07 18:12:45 +02:00
parent 55d4dfabe2
commit 8fc41ac50c

View file

@ -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