summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-03-28 01:44:05 +0100
committerFlorent Le Coz <louiz@louiz.org>2013-03-28 01:44:05 +0100
commit347e82b5529a9eecd09eba8419c700c89f8b5b00 (patch)
tree2f478fe166dcc49a7a54cf16a726eaeedc9aa0cc
parent86d4874718ed84ae14aba9089850306768cead2a (diff)
downloadpoezio-347e82b5529a9eecd09eba8419c700c89f8b5b00.tar.gz
poezio-347e82b5529a9eecd09eba8419c700c89f8b5b00.tar.bz2
poezio-347e82b5529a9eecd09eba8419c700c89f8b5b00.tar.xz
poezio-347e82b5529a9eecd09eba8419c700c89f8b5b00.zip
Add a (per-tab) notif_messages option to ignore MUC’s normal messages
-rw-r--r--doc/en/configure.txt5
-rw-r--r--src/tabs.py3
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