# HG changeset patch # User Charly COSTE # Date 1250952917 -7200 # Node ID cb6771a8c3cac53c3b37e98ac052e4a3ec60f2f6 # Parent 8aa261545662d1c9ecb1db5a8168f963fbb9d4bb Fixed a dumb error. Signed-off-by: Charly COSTE diff --git a/bot.py b/bot.py --- a/bot.py +++ b/bot.py @@ -91,7 +91,7 @@ class bot(Thread): continue - def _xmpp_disconnect_handler(self, xmpp_c): + def _xmpp_disconnect_handler(xmpp_c): xmpp_c.reconnectAndReauth() return @@ -441,7 +441,7 @@ class bot(Thread): c.RegisterHandler('presence', self._xmpp_presence_handler) c.RegisterHandler('iq', self._xmpp_iq_handler) c.RegisterHandler('message', self._xmpp_message_handler) - c.RegisterDisconnectHandler(self._xmpp_disconnect_handler(c)) + c.RegisterDisconnectHandler(self.__class__._xmpp_disconnect_handler) c.sendInitPresence() c.lock.release() return c