summaryrefslogtreecommitdiff
path: root/subbot.py
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2013-03-18 01:14:19 +0100
committerChristian Franke <nobody@nowhere.ws>2013-03-18 01:14:19 +0100
commit7d0a2421a0848ff9d0ff428a536ab2ced698f445 (patch)
treee5cf9bae2112d59cdd589314ec64d95da318b7c8 /subbot.py
parent9aa96372a5fe42c8f71adba05a6178ec0910f7d1 (diff)
subbot.py: adapt to api changes
Diffstat (limited to 'subbot.py')
-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):