changeset 261:26f7df23aee0

fixed another UnboundLocalError in IRC kick handling introduced in f1a21a006f2facd0ec2a71e99180b7b4df0907e3 Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sun, 21 Mar 2010 22:51:51 +0100
parents 9a2302e8382b
children db77ef37ff2c
files bot.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bot.py
+++ b/bot.py
@@ -637,7 +637,7 @@ class Bot(threading.Thread):
 					kicked.irc_connection.join(bridge.irc_room)
 				elif isinstance(kicked.xmpp_c, xmpp.client.Client):
 					# an IRC user has been kicked, make its duplicate leave
-					kicked.leave(m)
+					kicked.leave(leave_message)
 				else:
 					# an IRC user with no duplicate on XMPP has been kicked, say it on XMPP
 					bridge.say(say_levels.warning, log_message, on_irc=False)