we cannot register to an offline or error transport

This commit is contained in:
Yann Leboulanger 2005-05-25 11:00:41 +00:00
parent 967bcae933
commit 9952c4dc64
1 changed files with 2 additions and 1 deletions

View File

@ -250,7 +250,8 @@ class Add_new_contact_window:
jid_agents = []
for j in self.plugin.roster.contacts[account]:
user = self.plugin.roster.contacts[account][j][0]
if 'Transports' in user.groups:
if 'Transports' in user.groups and user.show != 'offline' and \
user.show != 'error':
jid_agents.append(j)
for a in jid_agents:
if a.find('aim') > -1: