From fc5e607dce0c3feb918ae8c34940b8ca9229b597 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 16 Apr 2020 17:00:48 -0700 Subject: [PATCH] modules/console: Forward fed version on room ID or alias to feds version cmd. --- modules/console.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/console.cc b/modules/console.cc index dfb5f203d..3cd8b6d24 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -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 {