0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 00:32:35 +01:00

modules/console: Require remote argument when event_id has no host.

This commit is contained in:
Jason Volk 2020-03-25 17:08:07 -07:00
parent 3a696636df
commit a9885d4a45

View file

@ -13623,12 +13623,16 @@ console_cmd__fed__event(opt &out, const string_view &line)
const m::event::id &event_id
{
param.at(0)
param.at("event_id")
};
const auto &remote
const string_view &remote
{
param.at(1, event_id.host())
param["remote"]?
param["remote"]:
event_id.host()?
event_id.host():
param.at("remote")
};
const string_view op