aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IRCLineHandler.py4
-rw-r--r--modules/auto_mode.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/IRCLineHandler.py b/IRCLineHandler.py
index 406dcfd8..df06cba0 100644
--- a/IRCLineHandler.py
+++ b/IRCLineHandler.py
@@ -215,7 +215,7 @@ def handle_MODE():
channel.add_mode(char, nickname)
else:
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,
modes=modes, args=args, channel=channel)
elif server.is_own_nickname(target):
@@ -231,7 +231,7 @@ def handle_MODE():
server.remove_own_mode(char)
else:
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,
modes=modes)
@handler(description="I've been invited somewhere")
diff --git a/modules/auto_mode.py b/modules/auto_mode.py
index f58c7bee..b369bcbd 100644
--- a/modules/auto_mode.py
+++ b/modules/auto_mode.py
@@ -3,7 +3,7 @@
class Module(object):
def __init__(self, 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("received").on("join").hook(self.on_join)