summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-01-12 06:49:33 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-01-12 06:49:33 +0100
commit469bbd29006cdf660e7a2deaf171ec71c1f1c031 (patch)
tree2e3369328fb78fe725713ae057b4424f375b75d6 /src/core.py
parente016305c2bea51c9bd2ccc8d2571f7fcea672079 (diff)
downloadpoezio-469bbd29006cdf660e7a2deaf171ec71c1f1c031.tar.gz
poezio-469bbd29006cdf660e7a2deaf171ec71c1f1c031.tar.bz2
poezio-469bbd29006cdf660e7a2deaf171ec71c1f1c031.tar.xz
poezio-469bbd29006cdf660e7a2deaf171ec71c1f1c031.zip
/add and /remove commands, yay
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core.py b/src/core.py
index c3b3510d..47ef1696 100644
--- a/src/core.py
+++ b/src/core.py
@@ -591,6 +591,8 @@ class Core(object):
contact.set_subscription(item.attrib['subscription'])
groups = item.findall('{jabber:iq:roster}group')
roster.edit_groups_of_contact(contact, [group.text for group in groups])
+ if item.attrib['subscription'] == 'remove':
+ roster.remove_contact(contact.get_bare_jid())
if isinstance(self.current_tab(), tabs.RosterInfoTab):
self.refresh_window()