do not remove iter if there are 2 or more resources

This commit is contained in:
Yann Leboulanger 2005-04-18 18:24:43 +00:00
parent 7934a71024
commit 1a0c39555d
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ class Interface:
user1.priority, user1.keyID)
luser.append(user1)
user1.resource = resource
if user1.jid.find('@') > 0: # It's not an agent
if user1.jid.find('@') > 0 and len(luser) == 1: # It's not an agent
if old_show == 0 and new_show > 1:
if not user1.jid in self.roster.newly_added[account]:
self.roster.newly_added[account].append(user1.jid)