mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-18 14:40:51 +01: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()
|
||||
|
||||
def outFilter(self, irc, msg):
|
||||
if self.filtering and msg.command == 'PRIVMSG':
|
||||
if self.filtering and msg.command == 'PRIVMSG' and self.words():
|
||||
self.updateRegexp()
|
||||
s = msg.args[1]
|
||||
if self.registryValue('stripFormatting'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user