0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-29 20:28:52 +02:00

modules/console: Add missing event_id parameter to room sounding cmd.

This commit is contained in:
Jason Volk 2020-11-12 18:17:35 -08:00
parent 4b60068809
commit d93771b39f

View file

@ -9260,17 +9260,24 @@ console_cmd__room__sounding(opt &out, const string_view &line)
{ {
const params param{line, " ", const params param{line, " ",
{ {
"room_id", "room_id", "event_id"
}}; }};
const auto &room_id const auto &room_id
{ {
m::room_id(param.at(0)) m::room_id(param.at("room_id"))
};
const m::event::id event_id
{
param["event_id"]?
m::event::id{param["event_id"]}:
m::event::id{}
}; };
const m::room room const m::room room
{ {
room_id room_id, event_id
}; };
const auto hazard const auto hazard