summaryrefslogtreecommitdiff
path: root/src/roster.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-06-18 12:52:58 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-06-18 12:52:58 +0200
commitc93815737ffce901c4c35a4def2e3fe0aaaeec99 (patch)
tree90deef758ee88b0167750bce4b7ba7153d09875c /src/roster.py
parent07ce4dcb10e8aa093ef37f9f79930d0e74104b7d (diff)
downloadpoezio-c93815737ffce901c4c35a4def2e3fe0aaaeec99.tar.gz
poezio-c93815737ffce901c4c35a4def2e3fe0aaaeec99.tar.bz2
poezio-c93815737ffce901c4c35a4def2e3fe0aaaeec99.tar.xz
poezio-c93815737ffce901c4c35a4def2e3fe0aaaeec99.zip
Empty roster on disconnect
Diffstat (limited to 'src/roster.py')
-rw-r--r--src/roster.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/roster.py b/src/roster.py
index aed5f5a0..afe83c9e 100644
--- a/src/roster.py
+++ b/src/roster.py
@@ -45,6 +45,10 @@ class Roster(object):
except IOError:
return
+ def empty(self):
+ self._contacts = {}
+ self._roster_groups = []
+
def add_contact(self, contact, jid):
"""
Add a contact to the contact list