summaryrefslogtreecommitdiff
path: root/sleekxmpp/roster/item.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-11-06 08:33:03 -0800
committerLance Stout <lancestout@gmail.com>2011-11-06 08:33:03 -0800
commit1a93a187f0d5216d20ef0b40d08b93372a5e717d (patch)
treed5ae1c38786f316a05cf7c96dc3ce4e00774d496 /sleekxmpp/roster/item.py
parenta8d5da509128c48aee8c5e0060ef53fa397e2122 (diff)
downloadslixmpp-1a93a187f0d5216d20ef0b40d08b93372a5e717d.tar.gz
slixmpp-1a93a187f0d5216d20ef0b40d08b93372a5e717d.tar.bz2
slixmpp-1a93a187f0d5216d20ef0b40d08b93372a5e717d.tar.xz
slixmpp-1a93a187f0d5216d20ef0b40d08b93372a5e717d.zip
Fix a crash when removing a contact.
Original author: louiz
Diffstat (limited to 'sleekxmpp/roster/item.py')
-rw-r--r--sleekxmpp/roster/item.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/roster/item.py b/sleekxmpp/roster/item.py
index 9980b3b4..1520f770 100644
--- a/sleekxmpp/roster/item.py
+++ b/sleekxmpp/roster/item.py
@@ -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()