request privacy rules and metacontacts only once at startup

This commit is contained in:
Yann Leboulanger 2009-08-04 00:49:56 +02:00
parent 1f32083334
commit ff2a02269d
2 changed files with 1 additions and 1 deletions

View File

@ -1035,6 +1035,7 @@ class Connection(ConnectionHandlers):
self.connection.onreceive(None)
self.discoverInfo(gajim.config.get_per('accounts', self.name, 'hostname'),
id_prefix='Gajim_')
self._request_privacy()
def _request_privacy(self):
iq = common.xmpp.Iq('get', common.xmpp.NS_PRIVACY, xmlns = '')

View File

@ -914,7 +914,6 @@ class ConnectionDisco:
self.available_transports[transport_type].append(jid)
else:
self.available_transports[transport_type] = [jid]
self._request_privacy()
self.dispatch('AGENT_INFO_INFO', (jid, node, identities,
features, data))