error_cb is sent to proxy jid, instead of proxy

name, add one more proxy (jabber.freenet.de)
This commit is contained in:
Dimitur Kirov 2006-03-20 21:48:14 +00:00
parent ae33330ac6
commit 7165a72157
2 changed files with 5 additions and 6 deletions

View File

@ -226,7 +226,7 @@ class Config:
'http_auth': [opt_str, 'ask'], # yes, no, ask
# proxy65 for FT
'file_transfer_proxies': [opt_str,
'proxy.jabber.org, proxy65.jabber.autocom.pl, proxy.jabber.cd.chalmers.se, proxy.netlab.cz, proxy65.jabber.ccc.de'],
'proxy.jabber.org, proxy.netlab.cz, transfer.jabber.freenet.de, proxy65.jabber.ccc.de, proxy65.jabber.autocom.pl, proxy.jabber.cd.chalmers.se'],
'msgwin-x-position': [opt_int, -1], # Default is to let the window manager decide
'msgwin-y-position': [opt_int, -1], # Default is to let the window manager decide
'msgwin-width': [opt_int, 480],

View File

@ -72,12 +72,11 @@ class Proxy65Manager:
raise common.xmpp.NodeProcessed
def error_cb(self, proxy, query):
if not self.proxies.has_key(proxy):
return
resolver = self.proxies[proxy]
sid = query.getAttr('sid')
if resolver.sid == sid:
resolver.keep_conf()
for resolver in self.proxies.values():
if resolver.sid == sid:
resolver.keep_conf()
break
def get_proxy(self, proxy):
if self.proxies.has_key(proxy):