From 3672856ab47900a8bf505cea3ea401eec8253318 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Tue, 17 Jan 2012 23:10:14 -0800 Subject: Fix roster key issue for non-JID keys. --- sleekxmpp/roster/single.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sleekxmpp') 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, -- cgit v1.2.3