rename iter_locals to get_local_users; make get_local_users skip on parse errors; remove deprecated function count_local_users
This commit is contained in:
parent
8d51359668
commit
fb19114bd9
2 changed files with 10 additions and 17 deletions
|
@ -95,14 +95,11 @@ impl Admin {
|
|||
|
||||
match event {
|
||||
AdminCommand::ListLocalUsers => {
|
||||
// collect local users only
|
||||
let users = guard.users.iter_locals();
|
||||
let users = guard.users.get_local_users();
|
||||
|
||||
let mut msg: String = format!("Found {} local user account(s):\n", users.len());
|
||||
msg += &users.join("\n");
|
||||
|
||||
// send number of local users as plain text:
|
||||
// TODO: send as Markdown
|
||||
send_message(RoomMessageEventContent::text_plain(&msg), guard, &state_lock);
|
||||
}
|
||||
AdminCommand::RegisterAppservice(yaml) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue