discover our server at startup even if we don't use filetransfert proxies. fixes #3224

This commit is contained in:
Yann Leboulanger 2007-06-09 12:26:30 +00:00
parent 964c3752cb
commit 7ef57b505d
1 changed files with 4 additions and 4 deletions

View File

@ -1855,6 +1855,10 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
if not self.connection:
return
self.connection.getRoster(self._on_roster_set)
self.discoverItems(gajim.config.get_per('accounts', self.name,
'hostname'), id_prefix='p')
self.discoverInfo(gajim.config.get_per('accounts', self.name,
'hostname'), id_prefix='p')
if gajim.config.get_per('accounts', self.name, 'use_ft_proxies'):
self.discover_ft_proxies()
@ -1865,10 +1869,6 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
proxies = map(lambda e:e.strip(), cfg_proxies.split(','))
for proxy in proxies:
gajim.proxy65_manager.resolve(proxy, self.connection)
self.discoverItems(gajim.config.get_per('accounts', self.name,
'hostname'), id_prefix='p')
self.discoverInfo(gajim.config.get_per('accounts', self.name,
'hostname'), id_prefix='p')
def _on_roster_set(self, roster):
raw_roster = roster.getRaw()