Fixed a bug if mode change had extra arguments it would crash on unpacking the values

This commit is contained in:
Chris Oliver 2010-03-01 15:40:33 -06:00
parent 1a8adb1529
commit 399ccb25ec

View file

@ -110,7 +110,7 @@ class LogBot(SingleServerIRCBot):
.replace("%reason%", reason)) .replace("%reason%", reason))
def on_mode(self, c, e): def on_mode(self, c, e):
modes, person = e.arguments() modes, person = e.arguments()[:2]
channel = e.target() channel = e.target()
giver = nm_to_n(e.source()) giver = nm_to_n(e.source())
self.write(channel, self.format["mode"].replace("%channel%", channel) \ self.write(channel, self.format["mode"].replace("%channel%", channel) \