badwords shouldn't effect users with +v or above

This commit is contained in:
jesopo 2018-10-28 14:01:54 +00:00
parent 85f86f9d8a
commit 82f8a23503

View file

@ -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: