diff options
| author | 2019-02-05 16:48:12 +0000 | |
|---|---|---|
| committer | 2019-02-05 16:48:12 +0000 | |
| commit | 8e59809db21b772e22cdf1d8792cf83e9688d21f (patch) | |
| tree | 411b37ac30cac26471896908e59e251fd823715b | |
| parent | Remove debug print in `sasl/__init__.py` (diff) | |
| signature | ||
CAP capabilities would not be index `2` if the line is multiline
(line_handler.py)
| -rw-r--r-- | modules/line_handler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/line_handler.py b/modules/line_handler.py index 76d78bf7..cb5d5631 100644 --- a/modules/line_handler.py +++ b/modules/line_handler.py @@ -282,9 +282,9 @@ class Module(ModuleManager.BaseModule): # the server is telling us about its capabilities! @utils.hook("raw.received.cap") def cap(self, event): - capabilities = utils.parse.keyvalue(event["args"][2]) + capabilities = utils.parse.keyvalue(event["args"][-1]) subcommand = event["args"][1].lower() - is_multiline = len(event["args"]) > 2 and event["args"][2] == "*" + is_multiline = len(event["args"]) > 3 and event["args"][2] == "*" if subcommand == "ls": event["server"].cap_started = True |
