diff options
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!"); |