From ffae7e7eb827b05303d190b8700ddfda9d29d028 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 28 Apr 2012 00:01:35 +0200 Subject: Trigger only the 'normal_presence' event if the contact is in the roster --- src/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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() -- cgit v1.2.3