Commit 347e82b5 authored by louiz’'s avatar louiz’

Add a (per-tab) notif_messages option to ignore MUC’s normal messages

parent 86d48747
......@@ -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.
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment