From e55fd815abac5e8af00cfcd8d7c16fb974bb1c39 Mon Sep 17 00:00:00 2001 From: "Benjamin P. Burhans" Date: Thu, 3 Sep 2009 20:57:45 -0700 Subject: [PATCH] Check for empty word list in BadWords plugin before filtering. Signed-off-by: James Vega --- plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index 27b1050..e373567 100644 --- a/plugin.py +++ b/plugin.py @@ -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'):