summaryrefslogtreecommitdiff
path: root/src/net/ea/chathandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea/chathandler.h')
-rw-r--r--src/net/ea/chathandler.h9
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