notify_on_all_muc_messages advanced option

This commit is contained in:
Nikos Kouremenos 2005-08-09 19:56:49 +00:00
parent 6b9c37f40b
commit e7498bca12
2 changed files with 3 additions and 1 deletions

View File

@ -1137,7 +1137,8 @@ class Chat:
if (jid != self.get_active_jid() or \
not self.window.is_active() or \
not end) and kind == 'incoming':
if self.widget_name == 'groupchat_window':
if self.widget_name == 'groupchat_window' and\
not gajim.config.get('notify_on_all_muc_messages'):
# Do not notify us for gc messages that are not for us
if text.find(self.nicks[jid]) == -1:
return

View File

@ -131,6 +131,7 @@ class Config:
'conversation_font': [opt_str, 'Sans 10'],
# IEC standard says KiB = 1024 bytes KB = 1000 bytes
'use_kib_mib': [opt_bool, False],
'notify_on_all_muc_messages': [opt_bool, False],
}
__options_per_key = {