mirror of
https://github.com/matrix-construct/construct
synced 2024-11-16 23:10:54 +01:00
modules/console: Add a feds resend cmd to reaccept direct to sender.
This commit is contained in:
parent
a068857bb9
commit
40a3263ad9
1 changed files with 24 additions and 0 deletions
|
@ -3312,6 +3312,30 @@ console_cmd__feds__event(opt &out, const string_view &line)
|
||||||
return true;
|
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
|
// fed
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue