0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

modules/console: Add prefix-option in room type cmd.

This commit is contained in:
Jason Volk 2020-03-24 17:48:03 -07:00
parent 5776549efe
commit 00980b547e

View file

@ -10389,12 +10389,17 @@ console_cmd__room__type(opt &out, const string_view &line)
param.at<int64_t>(3, -1L)
};
const bool prefix_match
{
endswith(type, "...")
};
const m::room::type events
{
room_id, type,
{
start_depth, end_depth
}
room_id,
rstrip(type, "..."),
{ start_depth, end_depth },
prefix_match
};
m::event::fetch event;