*Don't even try to verify an entry with no signature
This commit is contained in:
parent
ce246ead59
commit
d7fe74cbce
|
@ -100,6 +100,9 @@ const plugin: Plugin = {
|
||||||
|
|
||||||
events.on("create", async (message: Message, origin: Buffer) => {
|
events.on("create", async (message: Message, origin: Buffer) => {
|
||||||
let newEntry = entryFromMessage(message);
|
let newEntry = entryFromMessage(message);
|
||||||
|
if (!newEntry.signature?.length) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!verifyEntry(newEntry)) {
|
if (!verifyEntry(newEntry)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue