From bcc4695387d21f9629ab6f013aadbfe0d238aa6d Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sun, 5 Apr 2009 21:50:02 -0600 Subject: Implement TMWServ's Admin-, Chat-, and MapHandlers --- src/net/ea/chathandler.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/net/ea/chathandler.h') diff --git a/src/net/ea/chathandler.h b/src/net/ea/chathandler.h index 6ca71b80..a907535e 100644 --- a/src/net/ea/chathandler.h +++ b/src/net/ea/chathandler.h @@ -26,6 +26,8 @@ #include "net/messagehandler.h" #include "net/net.h" +namespace EAthena { + class ChatHandler : public MessageHandler, public Net::ChatHandler { public: @@ -42,13 +44,14 @@ class ChatHandler : public MessageHandler, public Net::ChatHandler void channelList(); - void enterChannel(int channelId, const std::string &password); + void enterChannel(const std::string &channel, + const std::string &password); void quitChannel(int channelId); void sendToChannel(int channelId, const std::string &text); - void userList(int channelId); + void userList(const std::string &channel); void setChannelTopic(int channelId, const std::string &text); @@ -57,6 +60,6 @@ class ChatHandler : public MessageHandler, public Net::ChatHandler void kickUser(int channelId, const std::string &name); }; -extern ChatHandler *chatHandler; +} // namespace EAthena #endif // NET_EA_CHATHANDLER_H -- cgit v1.2.3-70-g09d2