diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-26 21:35:58 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-26 21:35:58 -0600 |
commit | 2d5d31406ab057abd9417d13ab808f6823b2860b (patch) | |
tree | 363b70f23aa89e3f765e81b9b430924385626f9e /src/commandhandler.cpp | |
parent | bf6f383e82add4634c8c091216093596b4587f0d (diff) | |
download | mana-2d5d31406ab057abd9417d13ab808f6823b2860b.tar.gz mana-2d5d31406ab057abd9417d13ab808f6823b2860b.tar.bz2 mana-2d5d31406ab057abd9417d13ab808f6823b2860b.tar.xz mana-2d5d31406ab057abd9417d13ab808f6823b2860b.zip |
Add WhisperTabs
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r-- | src/commandhandler.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp index 96b66835..833ce718 100644 --- a/src/commandhandler.cpp +++ b/src/commandhandler.cpp @@ -383,15 +383,7 @@ void CommandHandler::handleMsg(const std::string &args) if (tempNick.compare(playerName) == 0 || args.empty()) return; - MessageOut outMsg(mNetwork); - outMsg.writeInt16(CMSG_CHAT_WHISPER); - outMsg.writeInt16(msg.length() + 28); - outMsg.writeString(recvnick, 24); - outMsg.writeString(msg, msg.length()); - - chatWindow->chatLog(strprintf(_("Whispering to %s: %s"), - recvnick.c_str(), msg.c_str()), - BY_PLAYER); + chatWindow->whisper(recvnick, msg, true); } else chatWindow->chatLog("Cannont send empty whispers!"); |