mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-28 13:42:36 +01:00
Check for empty word list in BadWords plugin before filtering.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
parent
de79e679f4
commit
6418b3d8c3
@ -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…
Reference in New Issue
Block a user