mirror of
https://github.com/matrix-construct/construct
synced 2025-01-15 17:16:49 +01:00
modules/console: Forward fed version on room ID or alias to feds version cmd.
This commit is contained in:
parent
c576c0765a
commit
fc5e607dce
1 changed files with 9 additions and 1 deletions
|
@ -14461,8 +14461,16 @@ console_cmd__fed__version(opt &out, const string_view &line)
|
||||||
"remote"
|
"remote"
|
||||||
}};
|
}};
|
||||||
|
|
||||||
|
const auto remote
|
||||||
|
{
|
||||||
|
param.at("remote")
|
||||||
|
};
|
||||||
|
|
||||||
|
if(valid(m::id::ROOM, remote) || valid(m::id::ROOM_ALIAS, remote))
|
||||||
|
return console_cmd__feds__version(out, line);
|
||||||
|
|
||||||
m::fed::version::opts opts;
|
m::fed::version::opts opts;
|
||||||
opts.remote = param.at("remote");
|
opts.remote = remote;
|
||||||
opts.dynamic = false;
|
opts.dynamic = false;
|
||||||
const unique_mutable_buffer buf
|
const unique_mutable_buffer buf
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue