From 43fe7e9fc00c1701a7e9f1cfda2bd070386fd709 Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 27 Jul 2018 14:34:26 +0000 Subject: [PATCH] RelayNext: match ignoreRegexp case insensitively --- RelayNext/plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RelayNext/plugin.py b/RelayNext/plugin.py index 1f2f67b..e223c06 100644 --- a/RelayNext/plugin.py +++ b/RelayNext/plugin.py @@ -183,7 +183,7 @@ class RelayNext(callbacks.Plugin): elif text.startswith('\x01'): # Other CTCP messages should just be ignored return - elif ignoreRegexp and ignoreRegexp.search(text): + elif ignoreRegexp and ignoreRegexp.search(text, re.IGNORECASE): self.log.debug("RelayNext: filtering message %r from ignoreRegexp %s", text, ignoreRegexp) return else: @@ -199,7 +199,7 @@ class RelayNext(callbacks.Plugin): except IndexError: partmsg = '' - if ignoreRegexp and ignoreRegexp.search(partmsg): + if ignoreRegexp and ignoreRegexp.search(partmsg, re.IGNORECASE): self.log.debug("RelayNext: filtering part message %r from ignoreRegexp %s", partmsg, ignoreRegexp) partmsg = '' @@ -207,7 +207,7 @@ class RelayNext(callbacks.Plugin): elif msg.command == 'QUIT': quitmsg = msg.args[0] - if ignoreRegexp and ignoreRegexp.search(quitmsg): + if ignoreRegexp and ignoreRegexp.search(quitmsg, re.IGNORECASE): self.log.debug("RelayNext: filtering quit message %r from ignoreRegexp %s", quitmsg, ignoreRegexp) quitmsg = ''