summaryrefslogtreecommitdiff
path: root/sleekxmpp/features
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-07-19 23:54:18 -0700
committerLance Stout <lancestout@gmail.com>2012-07-19 23:54:18 -0700
commit917faecdcbf07b63173b34b708cff5bdf6476d25 (patch)
tree3a456b4ffa3de085fbad0312eaf27d4147af29eb /sleekxmpp/features
parentf6edaa56a6e91f7104cd63e5d48b39d4ca7e09f2 (diff)
downloadslixmpp-917faecdcbf07b63173b34b708cff5bdf6476d25.tar.gz
slixmpp-917faecdcbf07b63173b34b708cff5bdf6476d25.tar.bz2
slixmpp-917faecdcbf07b63173b34b708cff5bdf6476d25.tar.xz
slixmpp-917faecdcbf07b63173b34b708cff5bdf6476d25.zip
Fix issue of roster data being split across multiple rosters.
Resolved by always normalizing JIDs to bare form, regardless of if they are JID objects or strings. Also simplified related code to prefer use of JID objects instead of strings so they don't need to be parsed multiple times.
Diffstat (limited to 'sleekxmpp/features')
-rw-r--r--sleekxmpp/features/feature_bind/bind.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/features/feature_bind/bind.py b/sleekxmpp/features/feature_bind/bind.py
index 2253d5ae..0584b308 100644
--- a/sleekxmpp/features/feature_bind/bind.py
+++ b/sleekxmpp/features/feature_bind/bind.py
@@ -50,7 +50,7 @@ class FeatureBind(BasePlugin):
self.xmpp.set_jid(response['bind']['jid'])
self.xmpp.bound = True
- self.xmpp.event('session_bind', self.xmpp.boundjid.full, direct=True)
+ self.xmpp.event('session_bind', self.xmpp.boundjid, direct=True)
self.xmpp.session_bind_event.set()
self.xmpp.features.add('bind')