'pattern' -> 'badword'

This commit is contained in:
jesopo 2018-10-28 12:37:32 +00:00
parent 0ff934d5b9
commit 53f027bea1

View file

@ -63,12 +63,12 @@ class Module(ModuleManager.BaseModule):
if badword["pattern"] in message_lower:
kick = False
ban = False
if pattern["action"] == "kick":
if badword["action"] == "kick":
kick = True
elif pattern["action"] == "kickban":
elif badword["action"] == "kickban":
ban = True
kick = True
elif pattern["action"] == "ban":
elif badword["action"] == "ban":
ban = True
if ban: