summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-26 21:35:58 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-26 21:35:58 -0600
commit2d5d31406ab057abd9417d13ab808f6823b2860b (patch)
tree363b70f23aa89e3f765e81b9b430924385626f9e /src/commandhandler.cpp
parentbf6f383e82add4634c8c091216093596b4587f0d (diff)
downloadmana-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.cpp10
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!");