fixed some dumb typos

This commit is contained in:
jesopo 2016-04-03 17:08:48 +01:00
parent e10ba5f293
commit a348bf4241
No known key found for this signature in database
GPG key ID: 0BBDEB2AEFCFFCB3
2 changed files with 3 additions and 3 deletions

View file

@ -215,7 +215,7 @@ def handle_MODE():
channel.add_mode(char, nickname) channel.add_mode(char, nickname)
else: else:
args.pop(0) args.pop(0)
bot.events.on("received").on("mode").call( bot.events.on("received").on("mode").call(
line=line, line_split=line_split, server=server, bot=bot, line=line, line_split=line_split, server=server, bot=bot,
modes=modes, args=args, channel=channel) modes=modes, args=args, channel=channel)
elif server.is_own_nickname(target): elif server.is_own_nickname(target):
@ -231,7 +231,7 @@ def handle_MODE():
server.remove_own_mode(char) server.remove_own_mode(char)
else: else:
server.add_own_mode(char) server.add_own_mode(char)
bot.events.on("self").on("mode").call( bot.events.on("self").on("mode").call(
line=line, line_split=line_split, server=server, bot=bot, line=line, line_split=line_split, server=server, bot=bot,
modes=modes) modes=modes)
@handler(description="I've been invited somewhere") @handler(description="I've been invited somewhere")

View file

@ -3,7 +3,7 @@
class Module(object): class Module(object):
def __init__(self, bot): def __init__(self, bot):
self.bot = bot self.bot = bot
bot.events.on("boot").on("done").hook(self.book_done) bot.events.on("boot").on("done").hook(self.boot_done)
bot.events.on("channel").on("mode").hook(self.on_mode) bot.events.on("channel").on("mode").hook(self.on_mode)
bot.events.on("received").on("join").hook(self.on_join) bot.events.on("received").on("join").hook(self.on_join)