1
0
mirror of https://github.com/deavmi/birchwood synced 2024-09-20 13:22:52 +02:00
- Added some TODOs for comments
This commit is contained in:
Tristan B. Velloza Kildaire 2023-03-15 20:23:30 +02:00
parent 681dfc042c
commit 672b8fee64

View File

@ -80,23 +80,55 @@ public class Client : Thread
/**
* User overridable handler functions below
*/
// TODO: comment
/**
*
* Params:
* fullMessage =
* channel =
* msgBody =
*/
public void onChannelMessage(Message fullMessage, string channel, string msgBody)
{
/* Default implementation */
logger.log("Channel("~channel~"): "~msgBody);
}
// TODO: comment
/**
*
* Params:
* fullMessage =
* nickname =
* msgBody =
*/
public void onDirectMessage(Message fullMessage, string nickname, string msgBody)
{
/* Default implementation */
logger.log("DirectMessage("~nickname~"): "~msgBody);
}
// TODO: comment
/**
*
* Params:
* message =
*/
public void onGenericCommand(Message message)
{
/* Default implementation */
logger.log("Generic("~message.getCommand()~", "~message.getFrom()~"): "~message.getParams());
}
// TODO: Hook certain ones default style with an implemenation
// ... for things that the client can learn from
public void onCommandReply(Message commandReply)
{
// TODO: Add numeric response check here for CERTAIN ones which add to client
// ... state
/* Default implementation */
logger.log("Response("~to!(string)(commandReply.getReplyType())~", "~commandReply.getFrom()~"): "~commandReply.toString());
}