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")
|
@utils.hook("received.message.channel")
|
||||||
def channel_message(self, event):
|
def channel_message(self, event):
|
||||||
|
if event["channel"].mode_or_above(event["user"], "v"):
|
||||||
|
continue
|
||||||
|
|
||||||
badwords = event["channel"].get_setting("badwords", [])
|
badwords = event["channel"].get_setting("badwords", [])
|
||||||
message_lower = event["message"].lower()
|
message_lower = event["message"].lower()
|
||||||
for badword in badwords:
|
for badword in badwords:
|
||||||
|
|
Loading…
Reference in a new issue