fixed some dumb typos
This commit is contained in:
parent
e10ba5f293
commit
a348bf4241
2 changed files with 3 additions and 3 deletions
|
@ -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")
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue