From d280bcdec31263b7b4549b076141141b34fc45d9 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 7 May 2019 12:25:50 -0700 Subject: [PATCH] modules/console: Allow event::idx argument to event info cmd. --- modules/console.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/console.cc b/modules/console.cc index 8837e1a2f..5a8b1a47d 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -6119,9 +6119,13 @@ console_cmd__event(opt &out, const string_view &line) "event_id" }}; + m::event::id::buf event_id_buf; + if(try_lex_cast(param.at("event_id"))) + event_id_buf = m::event_id(param.at("event_id")); + const m::event::id event_id { - param.at(0) + event_id_buf?: param.at("event_id") }; const auto args