diff options
Diffstat (limited to 'src/roster.py')
-rw-r--r-- | src/roster.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/roster.py b/src/roster.py index e6be9208..02c88636 100644 --- a/src/roster.py +++ b/src/roster.py @@ -22,6 +22,8 @@ class Roster(object): def __init__(self): self._contacts = {} # key = jid; value = Contact() self._roster_groups = [] + new_group = RosterGroup("none") + self._roster_groups.append(new_group) def add_contact(self, contact, jid): """ @@ -44,6 +46,8 @@ class Roster(object): Add or remove RosterGroup if needed """ # add the contact to each group he is in + if not len(groups): + groups = ['none'] for group in groups: if group in contact._groups: continue |