From 73077b9bbf11b022c989bcc063c94a8a62663090 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 28 Oct 2018 14:02:43 +0000 Subject: [PATCH] 'continue' -> 'return' in moules/badwords.py --- modules/badwords.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/badwords.py b/modules/badwords.py index 71ce661a..a3eca5e4 100644 --- a/modules/badwords.py +++ b/modules/badwords.py @@ -60,7 +60,7 @@ class Module(ModuleManager.BaseModule): @utils.hook("received.message.channel") def channel_message(self, event): if event["channel"].mode_or_above(event["user"], "v"): - continue + return badwords = event["channel"].get_setting("badwords", []) message_lower = event["message"].lower()