mirror of
https://github.com/progval/Limnoria.git
synced 2025-05-03 08:51:10 -05:00
Check for empty word list in BadWords plugin before filtering.
Signed-off-by: James Vega <jamessan@users.sourceforge.net> (cherry picked from commit 6418b3d8c3395f90244b782ecd9553fb642a4d7e)
This commit is contained in:
parent
3e984c71d0
commit
750fb2ccdc
@ -87,7 +87,7 @@ class BadWords(callbacks.Privmsg):
|
|||||||
self.lastModified = time.time()
|
self.lastModified = time.time()
|
||||||
|
|
||||||
def outFilter(self, irc, msg):
|
def outFilter(self, irc, msg):
|
||||||
if self.filtering and msg.command == 'PRIVMSG':
|
if self.filtering and msg.command == 'PRIVMSG' and self.words():
|
||||||
self.updateRegexp()
|
self.updateRegexp()
|
||||||
s = msg.args[1]
|
s = msg.args[1]
|
||||||
if self.registryValue('stripFormatting'):
|
if self.registryValue('stripFormatting'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user