0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 23:40:57 +01: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"))
};
const net::hostport hostport
if(!param["remote"])
{
param["remote"]?
param.at("remote"):
room_id.host()
};
m::fetch::state_ids(room_id, hostport);
m::fetch::state_ids(room_id);
out << "done" << std::endl;
return true;
}
const net::hostport hostport
{
param["remote"]
};
m::fetch::state_ids(room_id, hostport);
out << "done" << std::endl;
return true;
}