summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodolfo Henrique Carvalho <rhcarvalho@gmail.com>2012-01-16 16:59:45 -0200
committerRodolfo Henrique Carvalho <rhcarvalho@gmail.com>2012-01-16 16:59:45 -0200
commitf49b6fa79f1cda5d2fbf8c6329a58d22f88801c2 (patch)
tree2a7eea466fa13f26a7f3fa0c627716726b0e7828
parent7b854a190e877cc70da61ef076e61eb8b8c8c498 (diff)
downloadslixmpp-f49b6fa79f1cda5d2fbf8c6329a58d22f88801c2.tar.gz
slixmpp-f49b6fa79f1cda5d2fbf8c6329a58d22f88801c2.tar.bz2
slixmpp-f49b6fa79f1cda5d2fbf8c6329a58d22f88801c2.tar.xz
slixmpp-f49b6fa79f1cda5d2fbf8c6329a58d22f88801c2.zip
Use jid.bare as a key instead of a JID instance.
-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):
"""