# HG changeset patch # User Charly COSTE # Date 1269208311 -3600 # Node ID 26f7df23aee0a153ef1782f0c254f1175176ce32 # Parent 9a2302e8382b0debd1f2a94e7c1903bb069dd9e1 fixed another UnboundLocalError in IRC kick handling introduced in f1a21a006f2facd0ec2a71e99180b7b4df0907e3 Signed-off-by: Charly COSTE diff --git a/bot.py b/bot.py --- 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)