From c93815737ffce901c4c35a4def2e3fe0aaaeec99 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sat, 18 Jun 2011 12:52:58 +0200 Subject: Empty roster on disconnect --- src/roster.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/roster.py') 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 -- cgit v1.2.3