From a13f54882b518dcdb08305e1c4968adbd05e8110 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 21 Dec 2010 23:33:45 +0100 Subject: [PATCH] [steelman] Check sound allowance for contact_connected and contact_disconnected events. Fixes #6118 --- src/notify.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/notify.py b/src/notify.py index e22057250..888c2fbde 100644 --- a/src/notify.py +++ b/src/notify.py @@ -162,14 +162,16 @@ def notify(event, jid, account, parameters, advanced_notif_num=None): do_popup = True if gajim.config.get_per('soundevents', 'contact_connected', 'enabled') and not gajim.block_signed_in_notifications[account] and \ - not block_transport: + not block_transport and helpers.allow_sound_notification(account, + event, advanced_notif_num): do_sound = True elif event == 'contact_disconnected': status_message = parameters if helpers.allow_showing_notification(account, 'notify_on_signout'): do_popup = True if gajim.config.get_per('soundevents', 'contact_disconnected', - 'enabled'): + 'enabled') and helpers.allow_sound_notification(account, + event, advanced_notif_num): do_sound = True elif event == 'new_message': message_type = parameters[0]