mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 07:20:55 +01:00
modules/console: Remove cruft.
This commit is contained in:
parent
6e8a7a4162
commit
2579313bad
1 changed files with 0 additions and 36 deletions
|
@ -7131,42 +7131,6 @@ console_cmd__event__rewrite(opt &out, const string_view &line)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
|
||||||
console_cmd__event__fetch(opt &out, const string_view &line)
|
|
||||||
{
|
|
||||||
const params param{line, " ",
|
|
||||||
{
|
|
||||||
"room_id", "event_id"
|
|
||||||
}};
|
|
||||||
|
|
||||||
const m::event::id &event_id
|
|
||||||
{
|
|
||||||
param.at("event_id")
|
|
||||||
};
|
|
||||||
|
|
||||||
const auto &room_id
|
|
||||||
{
|
|
||||||
m::room_id(param.at("room_id"))
|
|
||||||
};
|
|
||||||
|
|
||||||
const net::hostport hostport
|
|
||||||
{
|
|
||||||
room_id.host()
|
|
||||||
};
|
|
||||||
|
|
||||||
using prototype = json::object (const m::room::id &,
|
|
||||||
const m::event::id &,
|
|
||||||
const net::hostport &);
|
|
||||||
|
|
||||||
static mods::import<prototype> acquire
|
|
||||||
{
|
|
||||||
"vm_fetch", "state_fetch"
|
|
||||||
};
|
|
||||||
|
|
||||||
acquire(room_id, event_id, hostport);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
console_cmd__event__visible(opt &out, const string_view &line)
|
console_cmd__event__visible(opt &out, const string_view &line)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue