'pattern' -> 'badword'
This commit is contained in:
parent
0ff934d5b9
commit
53f027bea1
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue