From 347e82b5529a9eecd09eba8419c700c89f8b5b00 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Thu, 28 Mar 2013 01:44:05 +0100 Subject: =?UTF-8?q?Add=20a=20(per-tab)=20notif=5Fmessages=20option=20to=20?= =?UTF-8?q?ignore=20MUC=E2=80=99s=20normal=20messages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/en/configure.txt | 5 ++++- src/tabs.py | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/en/configure.txt b/doc/en/configure.txt index cabc83e8..76a6b5b4 100644 --- a/doc/en/configure.txt +++ b/doc/en/configure.txt @@ -57,7 +57,7 @@ section of this documentation. This value will be added to your nickname to create the alternative nickname. For example, if you set "\_", and wanted to use the nickname "john", your alternative nickname will be "john_". - + *autorejoin*:: false Set to true if you want to automatically rejoin the room when you're kicked. @@ -661,3 +661,6 @@ bar = false Use logs for this JID or not. No value will make poezio fall back to the global value. +*notify_messages*:: true + + Only for MUC tabs: if true the tab will change its color to notify you when a new message is received. You will still be notified of highlights. Set to false if you’re not interested in a room non-highlight notifications. diff --git a/src/tabs.py b/src/tabs.py index 171998fd..70247ab2 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -1754,7 +1754,8 @@ class MucTab(ChatTab): if not time and nickname and\ nickname != self.own_nick and\ self.state != 'current': - if self.state != 'highlight': + if self.state != 'highlight' and\ + config.get_by_tabname('notify_messages', 'true', self.get_name()) == 'true': self.state = 'message' nick_color = nick_color or None highlight = False -- cgit v1.2.3