From adfacb195ba653b63fec08200d0535604d45e20e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 26 Mar 2011 20:04:40 +0200 Subject: Add option to chat context menu to remove nicks. Usefull for example for tmw guild bot. --- src/gui/widgets/chattab.cpp | 3 ++- src/gui/widgets/chattab.h | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'src/gui/widgets') diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp index 9675eb621..40bde104e 100644 --- a/src/gui/widgets/chattab.cpp +++ b/src/gui/widgets/chattab.cpp @@ -50,7 +50,8 @@ ChatTab::ChatTab(const std::string &name) : Tab(), - mAllowHightlight(true) + mAllowHightlight(true), + mRemoveNames(false) { setCaption(name); diff --git a/src/gui/widgets/chattab.h b/src/gui/widgets/chattab.h index 52c122e65..998ad2e3d 100644 --- a/src/gui/widgets/chattab.h +++ b/src/gui/widgets/chattab.h @@ -147,6 +147,12 @@ class ChatTab : public Tab void setAllowHighlight(bool n) { mAllowHightlight = n; } + bool getRemoveNames() + { return mRemoveNames; } + + void setRemoveNames(bool n) + { mRemoveNames = n; } + protected: friend class ChatWindow; friend class WhisperWindow; @@ -166,6 +172,7 @@ class ChatTab : public Tab ScrollArea *mScrollArea; BrowserBox *mTextOutput; bool mAllowHightlight; + bool mRemoveNames; }; extern ChatTab *localChatTab; -- cgit v1.2.3-70-g09d2