mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
modules/vm: Minor cleanup.
This commit is contained in:
parent
010790550d
commit
6d849b5adc
1 changed files with 5 additions and 6 deletions
|
@ -717,12 +717,11 @@ ircd::m::vm::execute_pdu(eval &eval,
|
||||||
fault::EXISTS, "Event has already been evaluated."
|
fault::EXISTS, "Event has already been evaluated."
|
||||||
};
|
};
|
||||||
|
|
||||||
if(opts.verify)
|
if(opts.verify && !verify(event))
|
||||||
if(!verify(event))
|
throw m::BAD_SIGNATURE
|
||||||
throw m::BAD_SIGNATURE
|
{
|
||||||
{
|
"Signature verification failed"
|
||||||
"Signature verification failed"
|
};
|
||||||
};
|
|
||||||
|
|
||||||
// Fetch dependencies
|
// Fetch dependencies
|
||||||
if(opts.fetch)
|
if(opts.fetch)
|
||||||
|
|
Loading…
Reference in a new issue