'received.message.channel' uses 'channel' not 'target' as event kwarg
This commit is contained in:
parent
7472079f60
commit
0ff934d5b9
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ class Module(ModuleManager.BaseModule):
|
|||
|
||||
@utils.hook("received.message.channel")
|
||||
def channel_message(self, event):
|
||||
badwords = event["target"].get_setting("badwords", [])
|
||||
badwords = event["channel"].get_setting("badwords", [])
|
||||
message_lower = event["message"].lower()
|
||||
for badword in badwords:
|
||||
if badword["pattern"] in message_lower:
|
||||
|
|
Loading…
Reference in a new issue