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:
parent
3a696636df
commit
a9885d4a45
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue