'continue' -> 'return' in moules/badwords.py
This commit is contained in:
parent
82f8a23503
commit
73077b9bbf
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue