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:
parent
3ca529e0c6
commit
f9fb70ab2a
1 changed files with 8 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue