diff options
| author | Christian Franke <nobody@nowhere.ws> | 2013-03-18 01:14:19 +0100 | 
|---|---|---|
| committer | Christian Franke <nobody@nowhere.ws> | 2013-03-18 01:14:19 +0100 | 
| commit | 7d0a2421a0848ff9d0ff428a536ab2ced698f445 (patch) | |
| tree | e5cf9bae2112d59cdd589314ec64d95da318b7c8 /subbot.py | |
| parent | 9aa96372a5fe42c8f71adba05a6178ec0910f7d1 (diff) | |
subbot.py: adapt to api changes
Diffstat (limited to 'subbot.py')
| -rw-r--r-- | subbot.py | 4 | 
1 files changed, 2 insertions, 2 deletions
@@ -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):  | 
