summaryrefslogtreecommitdiff
path: root/src/net/ea
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/net/ea
parentbf6f383e82add4634c8c091216093596b4587f0d (diff)
downloadmana-client-2d5d31406ab057abd9417d13ab808f6823b2860b.tar.gz
mana-client-2d5d31406ab057abd9417d13ab808f6823b2860b.tar.bz2
mana-client-2d5d31406ab057abd9417d13ab808f6823b2860b.tar.xz
mana-client-2d5d31406ab057abd9417d13ab808f6823b2860b.zip
Add WhisperTabs
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/chathandler.cpp11
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;