|
|
|
@ -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"],
|
|
|
|
|