From 9952c4dc6452a8ee5d4fab87c9d3938c3c62f797 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 25 May 2005 11:00:41 +0000 Subject: [PATCH] we cannot register to an offline or error transport --- src/dialogs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dialogs.py b/src/dialogs.py index 83babfb43..4a668d2a2 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -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: