Correctly use enumerate() in modules/badwords.py.badwords_list

This commit is contained in:
jesopo 2018-10-28 12:40:39 +00:00
parent 53f027bea1
commit 996df4dc5e

View file

@ -9,7 +9,7 @@ class Module(ModuleManager.BaseModule):
:require_mode: o
"""
badwords = event["target"].get_setting("badwords", [])
badwords = ("(%d) %s" % (i, badword["pattern"]) for badword in
badwords = ("(%d) %s" % (i, badword["pattern"]) for i, badword in
enumerate(badwords))
event["stdout"].write("%s: %s" % (event["target"].name,
", ".join(badwords)))