diff bot.py @ 171:489c157d9e82

display error when bot creation fails Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Mon, 01 Feb 2010 23:02:50 +0100
parents 0fc24e232997
children 64a0e9636ae6
line wrap: on
line diff
--- a/bot.py
+++ b/bot.py
@@ -38,6 +38,7 @@ class Bot(threading.Thread):
 	def __init__(self, jid, password, nickname, admins_jid=[], error_fd=sys.stderr, debug=False):
 		threading.Thread.__init__(self)
 		self.halt = False
+		self.bridges = []
 		self.bare_jid = xmpp.protocol.JID(jid=jid)
 		self.bare_jid.setResource('')
 		self.nickname = nickname
@@ -45,7 +46,6 @@ class Bot(threading.Thread):
 		self.error_fd = error_fd
 		self.debug = debug
 		self.admins_jid = admins_jid
-		self.bridges = []
 		self.xmpp_connections = {}
 		self.irc = irclib.IRC()
 		self.irc.bot = self