From 504e93a78d59d51243acbcab6831309805d01fd1 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 3 Apr 2016 13:20:05 +0100 Subject: tinkered with some modules and fixed a few bugs, also added the skeleton for the auto_mode.py module. --- IRCLineHandler.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'IRCLineHandler.py') diff --git a/IRCLineHandler.py b/IRCLineHandler.py index c43846c1..406dcfd8 100644 --- a/IRCLineHandler.py +++ b/IRCLineHandler.py @@ -215,6 +215,9 @@ def handle_MODE(): channel.add_mode(char, nickname) else: args.pop(0) + 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): modes = Utils.remove_colon(line_split[3]) remove = False @@ -228,6 +231,9 @@ def handle_MODE(): server.remove_own_mode(char) else: server.add_own_mode(char) + 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") def handle_INVITE(): nickname, username, hostname = Utils.seperate_hostmask(line_split[0]) -- cgit v1.3.1-10-gc9f91