mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
modules/console: Add local members counts to room top.
This commit is contained in:
parent
0241f2b9a1
commit
eee2c9481f
1 changed files with 11 additions and 18 deletions
|
@ -7800,23 +7800,16 @@ console_cmd__room__top(opt &out, const string_view &line)
|
|||
out << "remote joined: " << std::boolalpha << m::remote_joined(room_id) << std::endl;
|
||||
out << std::endl;
|
||||
|
||||
const m::room::members members(room_id);
|
||||
out << "invite: " << std::setw(7) << members.count("invite")
|
||||
<< std::endl
|
||||
<< "invite local: " << std::setw(7) << members.count("invite", my_host())
|
||||
<< std::endl
|
||||
<< "join: " << std::setw(7) << members.count("join")
|
||||
<< std::endl
|
||||
<< "join local: " << std::setw(7) << members.count("join", my_host())
|
||||
<< std::endl
|
||||
<< "leave: " << std::setw(7) << members.count("leave")
|
||||
<< std::endl
|
||||
<< "leave local: " << std::setw(7) << members.count("leave", my_host())
|
||||
<< std::endl
|
||||
<< "ban: " << std::setw(7) << members.count("ban")
|
||||
<< std::endl
|
||||
<< "ban local: " << std::setw(7) << members.count("ban", my_host())
|
||||
<< std::endl
|
||||
const m::room::members members{room_id};
|
||||
out
|
||||
<< "invite local: " << members.count("invite", my_host()) << std::endl
|
||||
<< "invite: " << members.count("invite") << std::endl
|
||||
<< "join local: " << members.count("join", my_host()) << std::endl
|
||||
<< "join: " << members.count("join") << std::endl
|
||||
<< "leave local: " << members.count("leave", my_host()) << std::endl
|
||||
<< "leave: " << members.count("leave") << std::endl
|
||||
<< "ban local: " << members.count("ban", my_host()) << std::endl
|
||||
<< "ban: " << members.count("ban") << std::endl
|
||||
<< std::endl;
|
||||
|
||||
out << "servers: " << m::room::origins{room_id}.count() << std::endl;
|
||||
|
|
Loading…
Reference in a new issue