*Don't even try to verify an entry with no signature

This commit is contained in:
Derrick Hammer 2022-12-31 14:52:56 -05:00
parent ce246ead59
commit d7fe74cbce
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 0 deletions

View File

@ -100,6 +100,9 @@ const plugin: Plugin = {
events.on("create", async (message: Message, origin: Buffer) => {
let newEntry = entryFromMessage(message);
if (!newEntry.signature?.length) {
return;
}
if (!verifyEntry(newEntry)) {
return;
}