comparison bridge.py @ 111:59401ac0f47a

handle XMPP remote-server-not-found Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Fri, 27 Nov 2009 22:47:27 +0100
parents 970a6b4ac6ce
children a817ad05dd1d
comparison
equal deleted inserted replaced
110:ec4fbec1f160 111:59401ac0f47a
112 112
113 113
114 def _xmpp_join_callback(self, errors): 114 def _xmpp_join_callback(self, errors):
115 """Called by muc._xmpp_presence_handler""" 115 """Called by muc._xmpp_presence_handler"""
116 if len(errors) == 0: 116 if len(errors) == 0:
117 if hasattr(self, reconnecting):
118 del self.reconnecting
117 if self.mode == None: 119 if self.mode == None:
118 return 120 return
119 self.bot.error('===> Debug: succesfully connected on XMPP side of bridge "'+str(self)+'"', debug=True) 121 self.bot.error('===> Debug: succesfully connected on XMPP side of bridge "'+str(self)+'"', debug=True)
120 self.say('[Notice] bridge "'+str(self)+'" is running in '+self.mode+' mode', on_irc=False) 122 self.say('[Notice] bridge "'+str(self)+'" is running in '+self.mode+' mode', on_irc=False)
121 else: 123 else: