mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +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 6418b3d8c3
)
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…
Reference in New Issue
Block a user