bugfix lazy reminds being announced one at a time

This commit is contained in:
iou1name 2020-08-21 01:00:06 -04:00
parent 8225efe9cc
commit 5d6bf5e40f

View File

@ -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)