summaryrefslogtreecommitdiff
path: root/logbot.py
diff options
context:
space:
mode:
authorChris Oliver <excid3@gmail.com>2010-03-01 15:40:33 -0600
committerChris Oliver <excid3@gmail.com>2010-03-01 15:40:33 -0600
commit399ccb25ecac9bc48cb40a6fa205f2738ff7b2bc (patch)
treeaebd4ef9a672d522ff5b45e52a5e8a85deb3ac4d /logbot.py
parent1a8adb1529c32e9861d2362ede2a220616c36d00 (diff)
downloadlogbot-399ccb25ecac9bc48cb40a6fa205f2738ff7b2bc.tar.xz
Fixed a bug if mode change had extra arguments it would crash on unpacking the values
Diffstat (limited to 'logbot.py')
-rw-r--r--logbot.py2
1 files changed, 1 insertions, 1 deletions
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) \