changeset 33:cb6771a8c3ca

Fixed a dumb error. Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sat, 22 Aug 2009 16:55:17 +0200
parents 8aa261545662
children 57d0e66378b0
files bot.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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