diff options
| author | 2016-04-03 13:20:05 +0100 | |
|---|---|---|
| committer | 2016-04-03 13:20:05 +0100 | |
| commit | 504e93a78d59d51243acbcab6831309805d01fd1 (patch) | |
| tree | f5687e4611875e3b4b5e5370492bf7df86e77703 /IRCLineHandler.py | |
| parent | added code to prevent newlines being where they shouldn't be in outgoing lines. (diff) | |
tinkered with some modules and fixed a few bugs, also added the skeleton for the auto_mode.py module.
Diffstat (limited to 'IRCLineHandler.py')
| -rw-r--r-- | IRCLineHandler.py | 6 |
1 files changed, 6 insertions, 0 deletions
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]) |
