0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-12 13:01:07 +01:00

modules/console: Fix room members cmd parameter defaultness.

This commit is contained in:
Jason Volk 2019-07-23 17:51:51 -07:00
parent 7dcd3fdcd8
commit 8787dcfaf7

View file

@ -8219,7 +8219,7 @@ console_cmd__room__members(opt &out, const string_view &line)
const string_view membership
{
param[1]
param.at(1, "join"_sv)
};
const m::room room
@ -8232,10 +8232,11 @@ console_cmd__room__members(opt &out, const string_view &line)
room
};
const m::room::members::closure closure{[&out]
const m::room::members::closure closure{[&out, &membership]
(const m::user::id &user_id)
{
out << user_id << std::endl;
out << std::setw(8) << std::left << membership
<< " " << user_id << std::endl;
}};
members.for_each(membership, closure);