summaryrefslogtreecommitdiff
path: root/logbot.py
diff options
context:
space:
mode:
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) \