'channel' -> 'target' in modules/badwords.py

This commit is contained in:
jesopo 2018-10-28 12:33:26 +00:00
parent 60421382d4
commit 09779ca570

View file

@ -8,7 +8,7 @@ class Module(ModuleManager.BaseModule):
:help: List the badwords in the current channel
:require_mode: o
"""
badwords = event["channel"].get_getting("badwords", [])
badwords = event["target"].get_getting("badwords", [])
badwords = ("(%d) %s" % (i, badword["pattern"]) for badword in
enumerate(badwords))
event["stdout"].write("%s: %s" % (event["target"].name,