don't show twice the same resource in account row tooltip.

This commit is contained in:
Yann Leboulanger 2007-11-07 21:30:35 +00:00
parent 3f22a94978
commit 21f4378e96
1 changed files with 8 additions and 0 deletions

View File

@ -1493,6 +1493,14 @@ class RosterWindow:
resources = roster.getResources(jid)
# ...get the contact info for our other online resources
for resource in resources:
# Check if we already have this resource
found = False
for contact_ in contacts:
if contact_.resource == resource:
found = True
break
if found:
continue
show = roster.getShow(jid+'/'+resource)
if not show:
show = 'online'