0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-30 04:38:52 +02:00

modules/console: Allow empty remote param to trigger the feds overload.

This commit is contained in:
Jason Volk 2019-04-11 06:57:34 -07:00
parent 3ca529e0c6
commit f9fb70ab2a

View file

@ -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;
}