summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-01-17 23:10:14 -0800
committerLance Stout <lancestout@gmail.com>2012-01-17 23:10:14 -0800
commit3672856ab47900a8bf505cea3ea401eec8253318 (patch)
tree750c2c846e59c4801bfbe45ad1b99162b6f7cc57
parent86d8736dccd698b55ab9ddffe57326bad8851319 (diff)
downloadslixmpp-3672856ab47900a8bf505cea3ea401eec8253318.tar.gz
slixmpp-3672856ab47900a8bf505cea3ea401eec8253318.tar.bz2
slixmpp-3672856ab47900a8bf505cea3ea401eec8253318.tar.xz
slixmpp-3672856ab47900a8bf505cea3ea401eec8253318.zip
Fix roster key issue for non-JID keys.
-rw-r--r--sleekxmpp/roster/single.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sleekxmpp/roster/single.py b/sleekxmpp/roster/single.py
index 8f7a496b..633f23f6 100644
--- a/sleekxmpp/roster/single.py
+++ b/sleekxmpp/roster/single.py
@@ -144,6 +144,9 @@ class RosterNode(object):
"""
if isinstance(jid, JID):
key = jid.bare
+ else:
+ key = jid
+
state = {'name': name,
'groups': groups or [],
'from': afrom,