diff options
author | Nikos Kouremenos <kourem@gmail.com> | 2005-04-17 21:55:06 +0400 |
---|---|---|
committer | Nikos Kouremenos <kourem@gmail.com> | 2005-04-17 21:55:06 +0400 |
commit | e3b478e1706c0fe0369ae12130257f1c109a3c8a (patch) | |
tree | 9259b30c14599082345b39daadcf8b1f00c8f3ee | |
parent | 92c65c67bc7b281c55e09ecdc93ebd74a6182299 (diff) |
allow or not notifications when dnd/away now works
-rw-r--r-- | src/gtkgui.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gtkgui.py b/src/gtkgui.py index f64812493..7903f816a 100644 --- a/src/gtkgui.py +++ b/src/gtkgui.py @@ -319,7 +319,8 @@ class interface: self.play_sound('contact_connected') if not self.windows[account]['chats'].has_key(jid) and \ not self.queues[account].has_key(jid) and \ - gajim.config.get('notify_on_online'): + gajim.config.get('notify_on_online') and \ + gajim.config.get('autopopupaway'): instance = dialogs.Popup_window(self, 'Contact Online', jid, \ account) self.roster.popup_windows.append(instance) @@ -328,7 +329,8 @@ class interface: self.play_sound('contact_disconnected') if not self.windows[account]['chats'].has_key(jid) and \ not self.queues[account].has_key(jid) and \ - gajim.config.get('notify_on_offline'): + gajim.config.get('notify_on_offline') and \ + gajim.config.get('autopopupaway'): instance = dialogs.Popup_window(self, 'Contact Offline', jid, \ account) self.roster.popup_windows.append(instance) @@ -352,7 +354,8 @@ class interface: if not self.windows[account]['chats'].has_key(jid) and \ not self.queues[account].has_key(jid): first = True - if gajim.config.get('notify_on_new_message'): + if gajim.config.get('notify_on_new_message') and \ + gajim.config.get('autopopupaway'): instance = dialogs.Popup_window(self, 'New Message', jid, account) self.roster.popup_windows.append(instance) self.roster.on_message(jid, array[1], array[2], account) |