diff options
| author | 2020-02-17 15:16:00 +0000 | |
|---|---|---|
| committer | 2020-02-17 15:16:00 +0000 | |
| commit | 7f98ba8310b8d48ee28f3fe90c99845b80edcf2b (patch) | |
| tree | f04f9996b4f26469cbcb5cae0388ab9a8988bccf /src/core_modules | |
| parent | support gitlab wiki events (diff) | |
| signature | ||
send multiple KICKs in the same line when possible
Diffstat (limited to 'src/core_modules')
| -rw-r--r-- | src/core_modules/line_handler/core.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core_modules/line_handler/core.py b/src/core_modules/line_handler/core.py index c72bcb77..a7075613 100644 --- a/src/core_modules/line_handler/core.py +++ b/src/core_modules/line_handler/core.py @@ -61,6 +61,13 @@ def handle_005(events, event): list_numeric = qiuet.get(2, "367") # RPL_BANLIST end_numeric = quiet.get(3, "368") # RPL_ENDOFBANLIST event["server"].quiet = [quiet[0], prefix, list_numeric, end_numeric] + if "TARGMAX" in isupport: + targmax = {} + for piece in isupport["TARGMAX"].split(","): + cmd, _, n = piece.partition(":") + if n: + targmax[cmd] = int(n) + event["server"].targmax = targmax events.on("received.005").call(isupport=isupport, server=event["server"]) |
