summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--subbot.py4
1 files 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):