summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-06 00:20:01 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-06 01:02:51 +0300
commiteb6a0f8af34d0f8de808d474381c232716a7534d (patch)
tree01849b726376d9ebe58a13d99a09dc31a29eaf1e /src/net/ea
parent5413a9e7c761dc80cf33dbee8593b8721c1539b6 (diff)
downloadmanaverse-eb6a0f8af34d0f8de808d474381c232716a7534d.tar.gz
manaverse-eb6a0f8af34d0f8de808d474381c232716a7534d.tar.bz2
manaverse-eb6a0f8af34d0f8de808d474381c232716a7534d.tar.xz
manaverse-eb6a0f8af34d0f8de808d474381c232716a7534d.zip
add globals filter.
It can move some global messages into debug window. This mean it prevent from spam in chat message and spam sounds. By default filter configured to ignore globals from Sagatha.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/chathandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/ea/chathandler.cpp b/src/net/ea/chathandler.cpp
index c8259bc91..a7879f6fc 100644
--- a/src/net/ea/chathandler.cpp
+++ b/src/net/ea/chathandler.cpp
@@ -356,7 +356,8 @@ void ChatHandler::processChat(Net::MessageIn &msg, const bool normalChat,
}
else if (localChatTab)
{
- localChatTab->chatLog(chatMsg, BY_GM);
+ if (chatWindow)
+ chatWindow->addGlobalMessage(chatMsg);
}
BLOCK_END("ChatHandler::processChat")
}