reset allow_notification when we go offline

This commit is contained in:
Yann Leboulanger 2005-05-15 16:54:04 +00:00
parent c9b791e5a2
commit 44bf5e7422
1 changed files with 2 additions and 0 deletions

View File

@ -182,6 +182,8 @@ class Interface:
#('STATUS', account, status) #('STATUS', account, status)
if status != 'offline': if status != 'offline':
gobject.timeout_add(30000, self.allow_notif, account) gobject.timeout_add(30000, self.allow_notif, account)
else:
self.allow_notifications[account] = False
self.roster.on_status_changed(account, status) self.roster.on_status_changed(account, status)
def handle_event_notify(self, account, array): def handle_event_notify(self, account, array):