summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-04-28 00:01:35 +0200
committermathieui <mathieui@mathieui.net>2012-04-28 00:01:35 +0200
commitffae7e7eb827b05303d190b8700ddfda9d29d028 (patch)
treea8ec613409c8195a94cf18ff89b76c56800f9870 /src/core.py
parent24341c84290b5e9636223fb9679efd6a7b52c5e2 (diff)
downloadpoezio-ffae7e7eb827b05303d190b8700ddfda9d29d028.tar.gz
poezio-ffae7e7eb827b05303d190b8700ddfda9d29d028.tar.bz2
poezio-ffae7e7eb827b05303d190b8700ddfda9d29d028.tar.xz
poezio-ffae7e7eb827b05303d190b8700ddfda9d29d028.zip
Trigger only the 'normal_presence' event if the contact is in the roster
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py
index f7447863..65bf6a35 100644
--- a/src/core.py
+++ b/src/core.py
@@ -880,9 +880,9 @@ class Core(object):
def on_presence(self, presence):
jid = presence['from']
contact = roster[jid.bare]
- self.events.trigger('normal_presence', presence, contact[jid.full])
if contact is None:
return
+ self.events.trigger('normal_presence', presence, contact[jid.full])
tab = self.get_tab_of_conversation_with_jid(jid, create=False)
if isinstance(self.current_tab(), tabs.RosterInfoTab):
self.refresh_window()