0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

modules/console: Forward fed version on room ID or alias to feds version cmd.

This commit is contained in:
Jason Volk 2020-04-16 17:00:48 -07:00
parent c576c0765a
commit fc5e607dce

View file

@ -14461,8 +14461,16 @@ console_cmd__fed__version(opt &out, const string_view &line)
"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;
opts.remote = param.at("remote");
opts.remote = remote;
opts.dynamic = false;
const unique_mutable_buffer buf
{