diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-06 00:20:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-06 01:02:51 +0300 |
commit | eb6a0f8af34d0f8de808d474381c232716a7534d (patch) | |
tree | 01849b726376d9ebe58a13d99a09dc31a29eaf1e /src/net | |
parent | 5413a9e7c761dc80cf33dbee8593b8721c1539b6 (diff) | |
download | manaplus-eb6a0f8af34d0f8de808d474381c232716a7534d.tar.gz manaplus-eb6a0f8af34d0f8de808d474381c232716a7534d.tar.bz2 manaplus-eb6a0f8af34d0f8de808d474381c232716a7534d.tar.xz manaplus-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')
-rw-r--r-- | src/net/ea/chathandler.cpp | 3 |
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") } |