From 996df4dc5e84648a79825f7f22cd730543888931 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 28 Oct 2018 12:40:39 +0000 Subject: [PATCH] Correctly use enumerate() in modules/badwords.py.badwords_list --- modules/badwords.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/badwords.py b/modules/badwords.py index 3404eefa..19e542cb 100644 --- a/modules/badwords.py +++ b/modules/badwords.py @@ -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)))