From a9885d4a4565f1c23c3987889f67afbaf84b072b Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 25 Mar 2020 17:08:07 -0700 Subject: [PATCH] modules/console: Require remote argument when event_id has no host. --- modules/console.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/console.cc b/modules/console.cc index 0d2efc87a..8a854d944 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -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