'continue' -> 'return' in moules/badwords.py

This commit is contained in:
jesopo 2018-10-28 14:02:43 +00:00
parent 82f8a23503
commit 73077b9bbf

View file

@ -60,7 +60,7 @@ class Module(ModuleManager.BaseModule):
@utils.hook("received.message.channel") @utils.hook("received.message.channel")
def channel_message(self, event): def channel_message(self, event):
if event["channel"].mode_or_above(event["user"], "v"): if event["channel"].mode_or_above(event["user"], "v"):
continue return
badwords = event["channel"].get_setting("badwords", []) badwords = event["channel"].get_setting("badwords", [])
message_lower = event["message"].lower() message_lower = event["message"].lower()