take into account notify_on_new_message option for pm

This commit is contained in:
Yann Leboulanger 2006-04-01 20:56:34 +00:00
parent 9541b75559
commit a803ba2758
1 changed files with 2 additions and 1 deletions

View File

@ -559,7 +559,8 @@ class Interface:
room_jid = jid
nick = resource
if first:
if helpers.allow_showing_notification(account):
if gajim.config.get('notify_on_new_message') and \
helpers.allow_showing_notification(account):
room_name, t = gajim.get_room_name_and_server_from_room_jid(
room_jid)
txt = _('%(nickname)s in room %(room_name)s says: %(message)s') \