diff --git a/include/ircd/m/vm.h b/include/ircd/m/vm.h index e643c80ce..b654a6753 100644 --- a/include/ircd/m/vm.h +++ b/include/ircd/m/vm.h @@ -261,11 +261,13 @@ struct ircd::m::vm::accepted { ctx::ctx *context; const vm::opts *opts; + const vm::copts *copts; const event::conforms *report; shared_buffer strung; accepted(const m::event &event, const vm::opts *const &opts, + const vm::copts *const &copts, const event::conforms *const &report); }; diff --git a/ircd/m/m.cc b/ircd/m/m.cc index 09715aad4..48f52c65d 100644 --- a/ircd/m/m.cc +++ b/ircd/m/m.cc @@ -718,10 +718,12 @@ ircd::m::vm::phase::operator()(eval &eval) ircd::m::vm::accepted::accepted(const m::event &event, const vm::opts *const &opts, + const vm::copts *const &copts, const event::conforms *const &report) :m::event{event} ,context{ctx::current} ,opts{opts} +,copts{copts} ,report{report} { } diff --git a/modules/console.cc b/modules/console.cc index 3735d9ea0..135ebc26e 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -3564,7 +3564,7 @@ console_cmd__stage__broadcast(opt &out, const string_view &line) { const m::vm::opts opts; const m::event event{stage.at(i)}; - m::vm::accepted a{event, &opts, &opts.report}; + m::vm::accepted a{event, &opts, nullptr, &opts.report}; m::vm::accept(a); } @@ -3880,7 +3880,7 @@ console_cmd__event__sign(opt &out, const string_view &line) const m::vm::opts opts; m::vm::accepted a { - event, &opts, &opts.report + event, &opts, nullptr, &opts.report }; m::vm::accept(a); @@ -6797,7 +6797,7 @@ console_cmd__feds__resend(opt &out, const string_view &line) }; const m::vm::opts opts; - m::vm::accepted a{event, &opts, &opts.report}; + m::vm::accepted a{event, &opts, nullptr, &opts.report}; m::vm::accept(a); return true; } diff --git a/modules/vm.cc b/modules/vm.cc index fce61c643..af996b352 100644 --- a/modules/vm.cc +++ b/modules/vm.cc @@ -477,7 +477,7 @@ try vm::accepted accepted { - event, &opts, &report + event, &opts, eval.copts, &report }; if(opts.effects)