0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-02 03:32:52 +01:00

modules/console: Allow event::idx argument to event info cmd.

This commit is contained in:
Jason Volk 2019-05-07 12:25:50 -07:00
parent 22077b58b9
commit d280bcdec3

View file

@ -6119,9 +6119,13 @@ console_cmd__event(opt &out, const string_view &line)
"event_id" "event_id"
}}; }};
m::event::id::buf event_id_buf;
if(try_lex_cast<ulong>(param.at("event_id")))
event_id_buf = m::event_id(param.at<ulong>("event_id"));
const m::event::id event_id const m::event::id event_id
{ {
param.at(0) event_id_buf?: param.at("event_id")
}; };
const auto args const auto args