From 0d439c39e99dbf1120dce784459176f744f70728 Mon Sep 17 00:00:00 2001 From: David Athay Date: Thu, 23 Apr 2009 17:31:14 +0100 Subject: Added listing all online users --- src/net/ea/chathandler.cpp | 5 +++++ src/net/ea/chathandler.h | 2 ++ src/net/ea/maphandler.cpp | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) (limited to 'src/net/ea') diff --git a/src/net/ea/chathandler.cpp b/src/net/ea/chathandler.cpp index 2e8df374..2446e26e 100644 --- a/src/net/ea/chathandler.cpp +++ b/src/net/ea/chathandler.cpp @@ -239,4 +239,9 @@ void ChatHandler::kickUser(int channelId, const std::string &name) localChatTab->chatLog(_("Channels are not supported!"), BY_SERVER); } +void ChatHandler::who() +{ + MessageOut outMsg(CMSG_WHO_REQUEST); +} + } // namespace EAthena diff --git a/src/net/ea/chathandler.h b/src/net/ea/chathandler.h index a907535e..f77b7b80 100644 --- a/src/net/ea/chathandler.h +++ b/src/net/ea/chathandler.h @@ -58,6 +58,8 @@ 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(); }; } // namespace EAthena diff --git a/src/net/ea/maphandler.cpp b/src/net/ea/maphandler.cpp index 79e41914..76b3c480 100644 --- a/src/net/ea/maphandler.cpp +++ b/src/net/ea/maphandler.cpp @@ -100,7 +100,7 @@ void MapHandler::mapLoaded(const std::string &mapName) void MapHandler::who() { - MessageOut outMsg(CMSG_WHO_REQUEST); + } void MapHandler::quit() -- cgit v1.2.3-70-g09d2