aboutsummaryrefslogtreecommitdiff
path: root/modules/line_handler/channel.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-13 11:53:47 +0100
committerGravatar jesopo2019-06-13 11:53:47 +0100
commit795f6afbeb91d00141b21930b8c0acb717989218 (patch)
treeef7a860b1245139fe2baa7ee51903f35a336a109 /modules/line_handler/channel.py
parenttypo, 'acount' -> 'count' (diff)
Mode mode (and mode arg) parsing to IRCChannel.py, add IRCChannel.mode_str
Diffstat (limited to 'modules/line_handler/channel.py')
-rw-r--r--modules/line_handler/channel.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/line_handler/channel.py b/modules/line_handler/channel.py
index 759fdf45..716877b6 100644
--- a/modules/line_handler/channel.py
+++ b/modules/line_handler/channel.py
@@ -121,9 +121,8 @@ def handle_324(event):
if event["args"][1] in event["server"].channels:
channel = event["server"].channels.get(event["args"][1])
modes = event["args"][2]
- for mode in modes[1:]:
- if mode in event["server"].channel_modes:
- channel.add_mode(mode)
+ args = event["args"][3:]
+ channel.parse_modes(modes, args[:])
def handle_329(event):
channel = event["server"].channels.get(event["args"][1])