0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-16 23:10:54 +01: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 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