diff options
| author | 2019-07-03 08:13:28 +0100 | |
|---|---|---|
| committer | 2019-07-03 08:13:28 +0100 | |
| commit | 76ab7935a04489017b6bb242593989621f1cfc30 (patch) | |
| tree | dbdae4b55d22cd6fbe7a31083f17328439a34e31 /modules/line_handler/core.py | |
| parent | Show an error (instead of throwing) when !define gets a 404 (diff) | |
| signature | ||
return parsed modes from IRCChannel.parse_modes, pass through mode events
Diffstat (limited to 'modules/line_handler/core.py')
| -rw-r--r-- | modules/line_handler/core.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/line_handler/core.py b/modules/line_handler/core.py index 8957f958..3207a1a9 100644 --- a/modules/line_handler/core.py +++ b/modules/line_handler/core.py @@ -83,10 +83,11 @@ def mode(events, event): modes = event["line"].args[1] args = event["line"].args[2:] - channel.parse_modes(modes, args[:]) + new_modes = channel.parse_modes(modes, args[:]) - events.on("received.mode.channel").call(modes=modes, mode_args=args, - channel=channel, server=event["server"], user=user) + events.on("received.mode.channel").call(modes=new_modes, + channel=channel, server=event["server"], user=user, modes_str=modes, + args_str=args) elif event["server"].is_own_nickname(target): modes = event["line"].args[1] _own_modes(event["server"], modes) |
