diff options
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/chathandler.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
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; |