diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-04-01 14:13:11 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-04-01 14:13:11 -0600 |
commit | b987a2806dbcd87a23850901f6f0b86f0801086c (patch) | |
tree | e373f4869436f830c2cdeeeaf34a941560ded3fe /src/gui/widgets/whispertab.cpp | |
parent | 6ef22b50f3d0c2410af5bd2543bedc0b3d692f83 (diff) | |
download | mana-b987a2806dbcd87a23850901f6f0b86f0801086c.tar.gz mana-b987a2806dbcd87a23850901f6f0b86f0801086c.tar.bz2 mana-b987a2806dbcd87a23850901f6f0b86f0801086c.tar.xz mana-b987a2806dbcd87a23850901f6f0b86f0801086c.zip |
Create a few more handlers for eAthena
Map, chat, and admin have been finished (to the degree they handle all
existing cases).
Diffstat (limited to 'src/gui/widgets/whispertab.cpp')
-rw-r--r-- | src/gui/widgets/whispertab.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gui/widgets/whispertab.cpp b/src/gui/widgets/whispertab.cpp index 75131bda..a641f0ad 100644 --- a/src/gui/widgets/whispertab.cpp +++ b/src/gui/widgets/whispertab.cpp @@ -25,11 +25,11 @@ #include "gui/palette.h" +#include "net/net.h" #ifdef TMWSERV_SUPPORT #include "net/tmwserv/chatserver/chatserver.h" #else -#include "net/messageout.h" -#include "net/ea/protocol.h" +#include "net/ea/chathandler.h" #endif #include "utils/gettext.h" @@ -53,13 +53,11 @@ void WhisperTab::handleInput(const std::string &msg) { return; } + // Net::getChatHandler()->privateMessage(mNick, msg); #ifdef TMWSERV_SUPPORT Net::ChatServer::privMsg(mNick, msg); #else - MessageOut outMsg(CMSG_CHAT_WHISPER); - outMsg.writeInt16(msg.length() + 28); - outMsg.writeString(mNick, 24); - outMsg.writeString(msg, msg.length()); + chatHandler->privateMessage(mNick, msg); #endif chatLog(strprintf(_("%s: %s"), player_node->getName().c_str(), |