mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-05-04 09:21:12 -05:00
RelayNext: match ignoreRegexp case insensitively
This commit is contained in:
parent
198d971e4c
commit
43fe7e9fc0
@ -183,7 +183,7 @@ class RelayNext(callbacks.Plugin):
|
|||||||
elif text.startswith('\x01'):
|
elif text.startswith('\x01'):
|
||||||
# Other CTCP messages should just be ignored
|
# Other CTCP messages should just be ignored
|
||||||
return
|
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)
|
self.log.debug("RelayNext: filtering message %r from ignoreRegexp %s", text, ignoreRegexp)
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
@ -199,7 +199,7 @@ class RelayNext(callbacks.Plugin):
|
|||||||
except IndexError:
|
except IndexError:
|
||||||
partmsg = ''
|
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)
|
self.log.debug("RelayNext: filtering part message %r from ignoreRegexp %s", partmsg, ignoreRegexp)
|
||||||
partmsg = ''
|
partmsg = ''
|
||||||
|
|
||||||
@ -207,7 +207,7 @@ class RelayNext(callbacks.Plugin):
|
|||||||
|
|
||||||
elif msg.command == 'QUIT':
|
elif msg.command == 'QUIT':
|
||||||
quitmsg = msg.args[0]
|
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)
|
self.log.debug("RelayNext: filtering quit message %r from ignoreRegexp %s", quitmsg, ignoreRegexp)
|
||||||
quitmsg = ''
|
quitmsg = ''
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user