0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-28 19:58:53 +02:00

modules/console: Use params for cmd.

This commit is contained in:
Jason Volk 2018-05-17 18:09:36 -07:00
parent 4bd78e78b4
commit 7d6baec6b9

View file

@ -3165,9 +3165,14 @@ console_cmd__room__state(opt &out, const string_view &line)
bool
console_cmd__room__state__rebuild__present(opt &out, const string_view &line)
{
const params param{line, " ",
{
"room_id"
}};
const auto &room_id
{
m::room_id(token(line, ' ', 0))
m::room_id(param.at(0))
};
const m::room room