connect to server even if it doesn't support disco

This commit is contained in:
Yann Leboulanger 2009-08-31 21:57:01 +02:00
parent b3704d37c5
commit 9345ddfad5

View file

@ -832,6 +832,11 @@ class ConnectionDisco:
def _DiscoverInfoErrorCB(self, con, iq_obj): def _DiscoverInfoErrorCB(self, con, iq_obj):
log.debug('DiscoverInfoErrorCB') log.debug('DiscoverInfoErrorCB')
jid = helpers.get_full_jid_from_iq(iq_obj) jid = helpers.get_full_jid_from_iq(iq_obj)
id_ = iq_obj.getID()
if id_[:6] == 'Gajim_':
if not self.privacy_rules_requested:
self.privacy_rules_requested = True
self._request_privacy()
self.dispatch('AGENT_ERROR_INFO', (jid)) self.dispatch('AGENT_ERROR_INFO', (jid))
def _DiscoverInfoCB(self, con, iq_obj): def _DiscoverInfoCB(self, con, iq_obj):