summaryrefslogtreecommitdiff
path: root/src/gui/chatwindow.h
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/gui/chatwindow.h
parent5413a9e7c761dc80cf33dbee8593b8721c1539b6 (diff)
downloadplus-eb6a0f8af34d0f8de808d474381c232716a7534d.tar.gz
plus-eb6a0f8af34d0f8de808d474381c232716a7534d.tar.bz2
plus-eb6a0f8af34d0f8de808d474381c232716a7534d.tar.xz
plus-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/gui/chatwindow.h')
-rw-r--r--src/gui/chatwindow.h5
1 files changed, 5 insertions, 0 deletions
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<std::string> mAwayLog;
StringVect mHighlights;
+ StringVect mGlobalsFilter;
bool mGMLoaded;
bool mHaveMouse;
bool mAutoHide;