summaryrefslogtreecommitdiff
path: root/src/net/tmwserv/chathandler.h
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2009-04-23 17:31:14 +0100
committerDavid Athay <ko2fan@gmail.com>2009-04-23 17:31:14 +0100
commit0d439c39e99dbf1120dce784459176f744f70728 (patch)
treeef9dd8ccd23e3ec3f35ad08b1bbe40ac633cd5ab /src/net/tmwserv/chathandler.h
parent0b1079c93c9ec61a0e0c00f8c942e5ef84052c05 (diff)
downloadmana-0d439c39e99dbf1120dce784459176f744f70728.tar.gz
mana-0d439c39e99dbf1120dce784459176f744f70728.tar.bz2
mana-0d439c39e99dbf1120dce784459176f744f70728.tar.xz
mana-0d439c39e99dbf1120dce784459176f744f70728.zip
Added listing all online users
Diffstat (limited to 'src/net/tmwserv/chathandler.h')
-rw-r--r--src/net/tmwserv/chathandler.h27
1 files changed, 17 insertions, 10 deletions
diff --git a/src/net/tmwserv/chathandler.h b/src/net/tmwserv/chathandler.h
index 05f5243d..bc30de7c 100644
--- a/src/net/tmwserv/chathandler.h
+++ b/src/net/tmwserv/chathandler.h
@@ -31,7 +31,7 @@ class ChatHandler : public MessageHandler, public Net::ChatHandler
{
public:
ChatHandler();
-
+
/**
* Handle the given message appropriately.
*/
@@ -60,52 +60,59 @@ class ChatHandler : public MessageHandler, public Net::ChatHandler
void setUserMode(int channelId, const std::string &name, int mode);
void kickUser(int channelId, const std::string &name);
-
+
+ void who();
+
private:
/**
* Handle chat messages sent from the game server.
*/
void handleGameChatMessage(MessageIn &msg);
-
+
/**
* Handle channel entry responses.
*/
void handleEnterChannelResponse(MessageIn &msg);
-
+
/**
* Handle list channels responses.
*/
void handleListChannelsResponse(MessageIn &msg);
-
+
/**
* Handle private messages.
*/
void handlePrivateMessage(MessageIn &msg);
-
+
/**
* Handle announcements.
*/
void handleAnnouncement(MessageIn &msg);
-
+
/**
* Handle chat messages.
*/
void handleChatMessage(MessageIn &msg);
-
+
/**
* Handle quit channel responses.
*/
void handleQuitChannelResponse(MessageIn &msg);
-
+
/**
* Handle list channel users responses.
*/
void handleListChannelUsersResponse(MessageIn &msg);
-
+
/**
* Handle channel events.
*/
void handleChannelEvent(MessageIn &msg);
+
+ /**
+ * Handle who responses.
+ */
+ void handleWhoResponse(MessageIn &msg);
};
} // namespace TmwServ