summaryrefslogtreecommitdiff
path: root/src
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 /src
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
Diffstat (limited to 'src')
-rw-r--r--src/tabs.py3
1 files changed, 2 insertions, 1 deletions
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