From 45ee715dc3546e438a490b4df4baf339d391888f Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 17 Oct 2019 19:09:58 +0300 Subject: [PATCH] Fix or break config parsing --- reactbot/bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactbot/bot.py b/reactbot/bot.py index 484ab38..37bf465 100644 --- a/reactbot/bot.py +++ b/reactbot/bot.py @@ -67,10 +67,10 @@ class ReactBot(Plugin): self.config.parse_data() except ConfigError: self.log.exception("Failed to load config") - for fi in self.user_flood.items(): + for fi in self.user_flood.values(): fi.max = self.config["antispam.user.max"] fi.delay = self.config["antispam.user.delay"] - for fi in self.room_flood.items(): + for fi in self.room_flood.values(): fi.max = self.config["antispam.room.max"] fi.delay = self.config["antispam.room.delay"]