From 2d5d31406ab057abd9417d13ab808f6823b2860b Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Thu, 26 Mar 2009 21:35:58 -0600 Subject: Add WhisperTabs --- src/net/ea/chathandler.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/net') diff --git a/src/net/ea/chathandler.cpp b/src/net/ea/chathandler.cpp index 4842c86f..aaf56555 100644 --- a/src/net/ea/chathandler.cpp +++ b/src/net/ea/chathandler.cpp @@ -89,15 +89,12 @@ void ChatHandler::handleMessage(MessageIn &msg) break; chatMsg = msg.readString(chatMsgLength); - if (nick != SERVER_NAME) - chatMsg = nick + " : " + chatMsg; - if (nick == SERVER_NAME) - chatWindow->chatLog(chatMsg, BY_SERVER); - else { + if (nick != SERVER_NAME) if (player_relations.hasPermission(nick, PlayerRelation::WHISPER)) - chatWindow->chatLog(chatMsg, ACT_WHISPER); - } + chatWindow->whisper(nick, chatMsg); + else + chatWindow->chatLog(chatMsg, BY_SERVER); break; -- cgit v1.2.3-70-g09d2