badwords shouldn't effect users with +v or above
This commit is contained in:
parent
85f86f9d8a
commit
82f8a23503
1 changed files with 3 additions and 0 deletions
|
@ -59,6 +59,9 @@ class Module(ModuleManager.BaseModule):
|
|||
|
||||
@utils.hook("received.message.channel")
|
||||
def channel_message(self, event):
|
||||
if event["channel"].mode_or_above(event["user"], "v"):
|
||||
continue
|
||||
|
||||
badwords = event["channel"].get_setting("badwords", [])
|
||||
message_lower = event["message"].lower()
|
||||
for badword in badwords:
|
||||
|
|
Loading…
Reference in a new issue