summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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