diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-11-12 02:46:44 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-11-12 02:46:44 +0100 |
commit | 3dda32ea5b2e5329e035f2b3f8ee49271e1512b3 (patch) | |
tree | 12ad7c70118a951d2bde0bf52625987afb09feb6 /src | |
parent | a78ac3f4bf2661c929866ae6f6fdfcee21bdb682 (diff) | |
download | poezio-3dda32ea5b2e5329e035f2b3f8ee49271e1512b3.tar.gz poezio-3dda32ea5b2e5329e035f2b3f8ee49271e1512b3.tar.bz2 poezio-3dda32ea5b2e5329e035f2b3f8ee49271e1512b3.tar.xz poezio-3dda32ea5b2e5329e035f2b3f8ee49271e1512b3.zip |
Do not ignore presence coming from a JID not in our roster.
Diffstat (limited to 'src')
-rw-r--r-- | src/core.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core.py b/src/core.py index b7e24c50..9622c0a0 100644 --- a/src/core.py +++ b/src/core.py @@ -658,11 +658,12 @@ class Core(object): jid = presence['from'] contact = roster.get_contact_by_jid(jid.bare) if not contact: - return - resource = contact.get_resource_by_fulljid(jid.full) + resource = None + else: + resource = contact.get_resource_by_fulljid(jid.full) + self.events.trigger('normal_presence', presence, resource) if not resource: return - self.events.trigger('normal_presence', presence, resource) status = presence['type'] status_message = presence['status'] priority = presence.getPriority() or 0 |