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:
parent
7dcd3fdcd8
commit
8787dcfaf7
1 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue