0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

modules/console: Add a feds resend cmd to reaccept direct to sender.

This commit is contained in:
Jason Volk 2018-04-24 17:43:45 -07:00
parent a068857bb9
commit 40a3263ad9

View file

@ -3312,6 +3312,30 @@ console_cmd__feds__event(opt &out, const string_view &line)
return true;
}
bool
console_cmd__feds__resend(opt &out, const string_view &line)
{
const params param{line, " ",
{
"event_id",
}};
const m::event::id event_id
{
param.at(0)
};
const m::event::fetch event
{
event_id
};
const m::vm::opts opts;
m::vm::accepted a{event, &opts, &opts.report};
m::vm::accept(a);
return true;
}
//
// fed
//