can browse EVERY hostname ;p

This commit is contained in:
Yann Leboulanger 2004-10-16 12:19:46 +00:00
parent d285fdf44d
commit 8dab95f07a
1 changed files with 3 additions and 2 deletions

View File

@ -772,9 +772,10 @@ class GajimCore:
groups=ev[2][2])
#('REQ_AGENTS', account, ())
elif ev[0] == 'REQ_AGENTS':
config = self.cfgParser.__getattr__(ev[1])
#do we need that ?
#con.discoverInfo('jabber.lagaule.org')
agents = con.discoverItems('jabber.lagaule.org')
#con.discoverInfo(config['hostname'])
agents = con.discoverItems(config['hostname'])
self.hub.sendPlugin('AGENTS', ev[1], agents)
for agent in agents:
self.request_infos(ev[1], con, agent['jid'])