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:
parent
5776549efe
commit
00980b547e
1 changed files with 9 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue