forked from LimnoriaPlugins/SnoParser
mom
This commit is contained in:
parent
5039d0b51b
commit
d96c690b35
@ -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']}"
|
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)
|
self._sendSnotice(irc, msg, repl)
|
||||||
if 'KILL' in text:
|
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)
|
couple = re.match(killregex, text)
|
||||||
who = couple.group(1)
|
who = couple.group(1)
|
||||||
who_operator = couple.group(2)
|
who_operator = couple.group(2)
|
||||||
@ -148,7 +148,7 @@ class SnoParser(callbacks.Plugin):
|
|||||||
|
|
||||||
self._setvhost(irc, msg, account)
|
self._setvhost(irc, msg, account)
|
||||||
self._sendSnotice(irc, msg, repl)
|
self._sendSnotice(irc, msg, repl)
|
||||||
|
|
||||||
|
|
||||||
# Post Registration
|
# Post Registration
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user