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,8 +717,7 @@ ircd::m::vm::execute_pdu(eval &eval,
|
|||
fault::EXISTS, "Event has already been evaluated."
|
||||
};
|
||||
|
||||
if(opts.verify)
|
||||
if(!verify(event))
|
||||
if(opts.verify && !verify(event))
|
||||
throw m::BAD_SIGNATURE
|
||||
{
|
||||
"Signature verification failed"
|
||||
|
|
Loading…
Reference in a new issue