From 8cacf16cb94920033b8d0c491eb7d931d552e98c Mon Sep 17 00:00:00 2001 From: Pratyush Desai Date: Sat, 16 Oct 2021 11:43:34 +0530 Subject: fix target chan issues Signed-off-by: Pratyush Desai --- plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin.py') diff --git a/plugin.py b/plugin.py index c06a6e4..dcb4c11 100644 --- a/plugin.py +++ b/plugin.py @@ -253,7 +253,7 @@ class SnoParser(callbacks.Plugin): (target, text) = msg.args if target == irc.nick: - # server notices CONNECT, KILL, XLINE, NICK, ACCOUNT + # server notices CONNECT, KILL, XLINE, NICK, ACCOUNT, OPER, QUIT, text = ircutils.stripFormatting(text) if 'CONNECT' in text: connregex = "^-CONNECT- Client connected \[(.+)\] \[u\:~(.+)\] \[h\:(.+)\] \[ip\:(.+)\] \[r\:(.+)\]$" @@ -344,8 +344,8 @@ class SnoParser(callbacks.Plugin): # Trigger HS SET self._setvhost(irc, msg, account) - self._sendSnotice(irc, msg, repl) + if 'ACCOUNT' in text and 'registered account' in text and 'SAREGISTER' in text: accregex = "^-ACCOUNT- Operator \[(.*)\] registered account \[(.*)\] with SAREGISTER$" couple = re.match(accregex, text) -- cgit v1.2.3