# HG changeset patch # User Charly COSTE # Date 1268519873 -3600 # Node ID 3b4826e14642e028f75e59a5ecdb88253553e2dd # Parent 1a8401d6bc936ce27f5af7a953c0a47ecffb0c2c fixed an UnboundLocalError in IRC kick handling, bug introduced in f1a21a006f2facd0ec2a71e99180b7b4df0907e3 Signed-off-by: Charly COSTE diff --git a/bot.py b/bot.py --- a/bot.py +++ b/bot.py @@ -623,7 +623,7 @@ class Bot(threading.Thread): self.error(say_levels.debug, 'a participant that was not here has been kicked ? WTF ?'+event_str) return - leave_message = 'kicked by '+nickname + leave_message = 'kicked by '+source_nickname if len(event.arguments()) > 1: leave_message += ' with reason: '+event.arguments()[1] else: