don't play thousands of sounds at startup

This commit is contained in:
Yann Leboulanger 2005-12-15 11:01:50 +00:00
parent 41df52dcfd
commit 5873a8bd9d
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ class Interface:
# 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 \