when we receive a subscribed presence, we remove the user from the 'not in list' group

This commit is contained in:
Yann Leboulanger 2004-12-08 19:56:33 +00:00
parent 62a5dbe2af
commit 1418e41076
1 changed files with 6 additions and 1 deletions

View File

@ -2253,7 +2253,12 @@ class plugin:
u = self.roster.contacts[account][jid][0]
u.name = array[1]
u.resource = array[2]
self.roster.redraw_jid(u.jid, account)
self.roster.remove_user(u, account)
if 'not in list' in u.groups:
u.groups.remove('not in list')
if len(u.groups) == 0:
u.groups = ['general']
self.roster.add_user_to_roster(u.jid, account)
else:
user1 = user(jid, jid, ['general'], 'online', \
'online', 'to', '', array[2], 0, '')