we cannot register to an offline or error transport
This commit is contained in:
parent
967bcae933
commit
9952c4dc64
|
@ -250,7 +250,8 @@ class Add_new_contact_window:
|
||||||
jid_agents = []
|
jid_agents = []
|
||||||
for j in self.plugin.roster.contacts[account]:
|
for j in self.plugin.roster.contacts[account]:
|
||||||
user = self.plugin.roster.contacts[account][j][0]
|
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)
|
jid_agents.append(j)
|
||||||
for a in jid_agents:
|
for a in jid_agents:
|
||||||
if a.find('aim') > -1:
|
if a.find('aim') > -1:
|
||||||
|
|
Loading…
Reference in New Issue