From 7d6baec6b98a84db23a4991e9fe124dd38cfc61b Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 17 May 2018 18:09:36 -0700 Subject: [PATCH] modules/console: Use params for cmd. --- modules/console.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/console.cc b/modules/console.cc index b653d0af1..e63632f54 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -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