mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +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()
|
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…
Reference in New Issue
Block a user