diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-04-05 21:50:02 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-04-05 21:50:02 -0600 |
commit | bcc4695387d21f9629ab6f013aadbfe0d238aa6d (patch) | |
tree | 2e095ec94e99e788eb851a37cdf5eae68270424c /src/net/ea/chathandler.h | |
parent | 9078373860729cdf80db8d09cbdee478dc54ec64 (diff) | |
download | mana-bcc4695387d21f9629ab6f013aadbfe0d238aa6d.tar.gz mana-bcc4695387d21f9629ab6f013aadbfe0d238aa6d.tar.bz2 mana-bcc4695387d21f9629ab6f013aadbfe0d238aa6d.tar.xz mana-bcc4695387d21f9629ab6f013aadbfe0d238aa6d.zip |
Implement TMWServ's Admin-, Chat-, and MapHandlers
Diffstat (limited to 'src/net/ea/chathandler.h')
-rw-r--r-- | src/net/ea/chathandler.h | 9 |
1 files changed, 6 insertions, 3 deletions
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 |