From 5d6bf5e40ff2c9877af00a89e6956665e722e085 Mon Sep 17 00:00:00 2001 From: iou1name Date: Fri, 21 Aug 2020 01:00:06 -0400 Subject: [PATCH] bugfix lazy reminds being announced one at a time --- modules/remind.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/remind.py b/modules/remind.py index 1fbd1e4..21e264f 100755 --- a/modules/remind.py +++ b/modules/remind.py @@ -169,6 +169,6 @@ def announce_lazy_reminder(bot, remindee, reminder, delta=None): @module.hook(True) def lazy_remind(bot, trigger): """Lazy reminds only activate when the person speaks.""" - for remind in bot.memory['lazy_remind'].get(trigger.nick, []): + for remind in list(bot.memory['lazy_remind'].get(trigger.nick, [])): bot.msg(remind) bot.memory['lazy_remind'][trigger.nick].remove(remind)