Fix a crash when removing a contact.

Original author: louiz
This commit is contained in:
Lance Stout 2011-11-06 08:33:03 -08:00
parent a8d5da5091
commit 1a93a187f0

View file

@ -224,7 +224,7 @@ class RosterItem(object):
if self['to']:
p = self.xmpp.Presence()
p['to'] = self.jid
p['type'] = ['unsubscribe']
p['type'] = 'unsubscribe'
if self.xmpp.is_component:
p['from'] = self.owner
p.send()