From f9fb70ab2a3a618d81af25ea383fad4d31b886cb Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 11 Apr 2019 06:57:34 -0700 Subject: [PATCH] modules/console: Allow empty remote param to trigger the feds overload. --- modules/console.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/modules/console.cc b/modules/console.cc index 63e02c92f..fee7f36c9 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -12096,15 +12096,19 @@ console_cmd__fetch(opt &out, const string_view &line) m::room_id(param.at("room_id")) }; + if(!param["remote"]) + { + m::fetch::state_ids(room_id); + out << "done" << std::endl; + return true; + } + const net::hostport hostport { - param["remote"]? - param.at("remote"): - room_id.host() + param["remote"] }; m::fetch::state_ids(room_id, hostport); - out << "done" << std::endl; return true; }