Fix roster key issue for non-JID keys.

This commit is contained in:
Lance Stout 2012-01-17 23:10:14 -08:00
parent 86d8736dcc
commit 3672856ab4

View file

@ -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,