summaryrefslogtreecommitdiff
path: root/src/roster.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-06-20 00:26:23 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-06-20 00:26:23 +0200
commit3c120b3aa23456c0a0d2ca8c7edff2f51772ddf7 (patch)
treeb55c0b9a7c210a22080cbafe7d36e4fbcf697ea0 /src/roster.py
parent6ed46d1fe39620b776f08ce08280fac46f5929a0 (diff)
parentf4c24380466fa54924a925a12817e28d603fd4d1 (diff)
downloadpoezio-3c120b3aa23456c0a0d2ca8c7edff2f51772ddf7.tar.gz
poezio-3c120b3aa23456c0a0d2ca8c7edff2f51772ddf7.tar.bz2
poezio-3c120b3aa23456c0a0d2ca8c7edff2f51772ddf7.tar.xz
poezio-3c120b3aa23456c0a0d2ca8c7edff2f51772ddf7.zip
merge
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