From 7d0a2421a0848ff9d0ff428a536ab2ced698f445 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Mon, 18 Mar 2013 01:14:19 +0100 Subject: subbot.py: adapt to api changes --- subbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subbot.py b/subbot.py index 8c9e098..0afa76b 100644 --- a/subbot.py +++ b/subbot.py @@ -63,11 +63,11 @@ class TestBot(irc.bot.SingleServerIRCBot): c.join(self.channel) def on_pubmsg(self, c, e): - message = e.arguments()[0] + message = e.arguments[0] light_command_prefix = '!light' if message.startswith(light_command_prefix): - nick = e.source().nick + nick = e.source.nick self.on_light_command(nick, message[len(light_command_prefix) + 1:]) def on_light_command(self, nick, commandline): -- cgit v1.2.1