From 5873a8bd9d0f7a4d6a4014d782855105f770080c Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Thu, 15 Dec 2005 11:01:50 +0000
Subject: [PATCH] don't play thousands of sounds at startup

---
 src/gajim.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gajim.py b/src/gajim.py
index 1dd9a39b28..f501ce5387 100755
--- a/src/gajim.py
+++ b/src/gajim.py
@@ -373,7 +373,7 @@ def handle_event_notify(self, account, array):
 			# play sound
 			if old_show < 2 and new_show > 1:
 				if gajim.config.get_per('soundevents', 'contact_connected',
-					'enabled'):
+					'enabled') and gajim.allow_notifications[account]:
 					helpers.play_sound('contact_connected')
 				if not self.instances[account]['chats'].has_key(jid) and \
 					not gajim.awaiting_events[account].has_key(jid) and \
-- 
GitLab