mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
modules/console: Allow event::idx argument to event info cmd.
This commit is contained in:
parent
22077b58b9
commit
d280bcdec3
1 changed files with 5 additions and 1 deletions
|
@ -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<ulong>(param.at("event_id")))
|
||||
event_id_buf = m::event_id(param.at<ulong>("event_id"));
|
||||
|
||||
const m::event::id event_id
|
||||
{
|
||||
param.at(0)
|
||||
event_id_buf?: param.at("event_id")
|
||||
};
|
||||
|
||||
const auto args
|
||||
|
|
Loading…
Reference in a new issue