0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-14 05:51:10 +01:00

modules/console: Add argument to show event's referenced json::object if available.

This commit is contained in:
Jason Volk 2019-01-26 17:30:42 -08:00
parent 8c5b1f283f
commit 916afec37b

View file

@ -5463,6 +5463,14 @@ console_cmd__event(opt &out, const string_view &line)
return true; return true;
} }
case hash("source"):
{
if(event.source)
out << event.source << std::endl;
return true;
}
case hash("idx"): case hash("idx"):
out << event_idx << std::endl; out << event_idx << std::endl;
return true; return true;