summaryrefslogtreecommitdiff
path: root/sleekxmpp/roster
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-01-16 11:44:42 -0800
committerLance Stout <lancestout@gmail.com>2012-01-16 11:44:42 -0800
commita4b27ff031d6aba7fd0985c5106319098e39caf6 (patch)
tree2a7eea466fa13f26a7f3fa0c627716726b0e7828 /sleekxmpp/roster
parent7b854a190e877cc70da61ef076e61eb8b8c8c498 (diff)
parentf49b6fa79f1cda5d2fbf8c6329a58d22f88801c2 (diff)
downloadslixmpp-a4b27ff031d6aba7fd0985c5106319098e39caf6.tar.gz
slixmpp-a4b27ff031d6aba7fd0985c5106319098e39caf6.tar.bz2
slixmpp-a4b27ff031d6aba7fd0985c5106319098e39caf6.tar.xz
slixmpp-a4b27ff031d6aba7fd0985c5106319098e39caf6.zip
Merge pull request #137 from rhcarvalho/patch-1
Use jid.bare as a key instead of a JID instance.
Diffstat (limited to 'sleekxmpp/roster')
-rw-r--r--sleekxmpp/roster/single.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sleekxmpp/roster/single.py b/sleekxmpp/roster/single.py
index c2f8e763..8f7a496b 100644
--- a/sleekxmpp/roster/single.py
+++ b/sleekxmpp/roster/single.py
@@ -152,11 +152,11 @@ class RosterNode(object):
'pending_out': pending_out,
'whitelisted': whitelisted,
'subscription': 'none'}
- self._jids[jid] = RosterItem(self.xmpp, jid, self.jid,
+ self._jids[key] = RosterItem(self.xmpp, jid, self.jid,
state=state, db=self.db,
roster=self)
if save:
- self._jids[jid].save()
+ self._jids[key].save()
def subscribe(self, jid):
"""