From b87487deeabdc78afe73069ae2cbbefd11c438d4 Mon Sep 17 00:00:00 2001 From: dece Date: Mon, 12 Oct 2020 19:09:55 +0200 Subject: [PATCH] notes: fix delivery of multiples notes --- edmond/plugins/notes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/edmond/plugins/notes.py b/edmond/plugins/notes.py index b5f1b02..21ce8e0 100644 --- a/edmond/plugins/notes.py +++ b/edmond/plugins/notes.py @@ -22,7 +22,8 @@ class NotesPlugin(Plugin): if nick == self.bot.nick: return notes = self.get_storage_value("notes", []) - notes = filter(lambda n: n["dest"] == nick, notes) + notes = list(filter(lambda n: n["dest"] == nick, notes)) + self.bot.log_d(f"Delivering {len(notes)} notes to {nick}.") for note in notes: message = self.config["deliver_format"].format( sender=note["sender"],