From eb6a0f8af34d0f8de808d474381c232716a7534d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 6 Sep 2013 00:20:01 +0300 Subject: 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. --- src/gui/chatwindow.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/chatwindow.h') diff --git a/src/gui/chatwindow.h b/src/gui/chatwindow.h index 67f87be1a..80b59b8d7 100644 --- a/src/gui/chatwindow.h +++ b/src/gui/chatwindow.h @@ -273,6 +273,8 @@ class ChatWindow final : public Window, void parseHighlights(); + void parseGlobalsFilter(); + bool findHighlight(const std::string &str) A_WARN_UNUSED; void copyToClipboard(const int x, const int y) const; @@ -293,6 +295,8 @@ class ChatWindow final : public Window, void widgetResized(const gcn::Event &event) override; + void addGlobalMessage(const std::string &line); + #ifdef USE_PROFILER void logicChildren(); #endif @@ -367,6 +371,7 @@ class ChatWindow final : public Window, unsigned int mChatHistoryIndex; std::list mAwayLog; StringVect mHighlights; + StringVect mGlobalsFilter; bool mGMLoaded; bool mHaveMouse; bool mAutoHide; -- cgit v1.2.3-60-g2f50