mirror of
https://github.com/matrix-construct/construct
synced 2024-11-16 15:00:51 +01:00
modules/console: Use params for cmd.
This commit is contained in:
parent
4bd78e78b4
commit
7d6baec6b9
1 changed files with 6 additions and 1 deletions
|
@ -3165,9 +3165,14 @@ console_cmd__room__state(opt &out, const string_view &line)
|
||||||
bool
|
bool
|
||||||
console_cmd__room__state__rebuild__present(opt &out, const string_view &line)
|
console_cmd__room__state__rebuild__present(opt &out, const string_view &line)
|
||||||
{
|
{
|
||||||
|
const params param{line, " ",
|
||||||
|
{
|
||||||
|
"room_id"
|
||||||
|
}};
|
||||||
|
|
||||||
const auto &room_id
|
const auto &room_id
|
||||||
{
|
{
|
||||||
m::room_id(token(line, ' ', 0))
|
m::room_id(param.at(0))
|
||||||
};
|
};
|
||||||
|
|
||||||
const m::room room
|
const m::room room
|
||||||
|
|
Loading…
Reference in a new issue