summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-05-09 18:21:14 -0600
committerJared Adams <jaxad0127@gmail.com>2010-06-29 15:48:52 -0600
commitf1cab9c5ab1d36586ae1e0d1dae3f3d1483522b5 (patch)
treea0146a49c90bd15bb65e8bbae94883b189037a40 /src/gui/chat.cpp
parenta2bb244ea72fefdb60d8ef5b037dfbc5b6ac842d (diff)
downloadmana-client-f1cab9c5ab1d36586ae1e0d1dae3f3d1483522b5.tar.gz
mana-client-f1cab9c5ab1d36586ae1e0d1dae3f3d1483522b5.tar.bz2
mana-client-f1cab9c5ab1d36586ae1e0d1dae3f3d1483522b5.tar.xz
mana-client-f1cab9c5ab1d36586ae1e0d1dae3f3d1483522b5.zip
Make whisper responses from tmwAthena show up in correct tabs
Reviewed-by: Bertram
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index da1bd600..9842e1f4 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -431,7 +431,7 @@ void ChatWindow::setRecordingFile(const std::string &msg)
}
void ChatWindow::whisper(const std::string &nick,
- const std::string &mes, bool own)
+ const std::string &mes, Own own)
{
if (mes.empty())
return;
@@ -455,10 +455,14 @@ void ChatWindow::whisper(const std::string &nick,
if (tab)
{
- if (own)
+ if (own == BY_PLAYER)
{
tab->chatInput(mes);
}
+ else if (own == BY_SERVER)
+ {
+ tab->chatLog(mes);
+ }
else
{
tab->chatLog(nick, mes);