Check for empty word list in BadWords plugin before filtering.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
Benjamin P. Burhans 2009-09-03 20:57:45 -07:00 committed by James Vega
parent de79e679f4
commit 6418b3d8c3
1 changed files with 1 additions and 1 deletions

View File

@ -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'):