This commit is contained in:
Pratyush Desai 2021-08-24 04:55:52 +05:30
parent 5039d0b51b
commit d96c690b35
Signed by untrusted user: pratyush
GPG Key ID: DBA5BB7505946FAD

View File

@ -100,7 +100,7 @@ class SnoParser(callbacks.Plugin):
repl = f"\x02\x1FNOTICE: {DictFromSnotice['notice']} \x0F\x11\x0303 :=D\x0F \x02UnbannedBy:\x0F {DictFromSnotice['who']} \x02XLINE type:\x0F {DictFromSnotice['type']} \x02Host/IP:\x0F {DictFromSnotice['target']}"
self._sendSnotice(irc, msg, repl)
if 'KILL' in text:
killregex = "^-KILL- (.+) \[(.+)\] killed (\d) clients with a (KLINE|DLINE) \[(.+)\]$"
killregex = "^-KILL- (.+) \[(.+)\] killed (\d) clients with a (KLINE|``````````LINE) \[(.+)\]$"
couple = re.match(killregex, text)
who = couple.group(1)
who_operator = couple.group(2)