From 399ccb25ecac9bc48cb40a6fa205f2738ff7b2bc Mon Sep 17 00:00:00 2001 From: Chris Oliver Date: Mon, 1 Mar 2010 15:40:33 -0600 Subject: Fixed a bug if mode change had extra arguments it would crash on unpacking the values --- logbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logbot.py b/logbot.py index d456625..9852ee4 100644 --- a/logbot.py +++ b/logbot.py @@ -110,7 +110,7 @@ class LogBot(SingleServerIRCBot): .replace("%reason%", reason)) def on_mode(self, c, e): - modes, person = e.arguments() + modes, person = e.arguments()[:2] channel = e.target() giver = nm_to_n(e.source()) self.write(channel, self.format["mode"].replace("%channel%", channel) \ -- cgit v1.2.3