|
|
@ -95,7 +95,7 @@ impl Admin {
|
|
|
|
|
|
|
|
|
|
|
|
match event {
|
|
|
|
match event {
|
|
|
|
AdminCommand::ListLocalUsers => {
|
|
|
|
AdminCommand::ListLocalUsers => {
|
|
|
|
// collect all local users
|
|
|
|
// collect local users only
|
|
|
|
let users = guard.users.iter_locals();
|
|
|
|
let users = guard.users.iter_locals();
|
|
|
|
|
|
|
|
|
|
|
|
let mut msg: String = format!("Found {} local user account(s):\n", users.len());
|
|
|
|
let mut msg: String = format!("Found {} local user account(s):\n", users.len());
|
|
|
@ -104,7 +104,6 @@ impl Admin {
|
|
|
|
// send number of local users as plain text:
|
|
|
|
// send number of local users as plain text:
|
|
|
|
// TODO: send as Markdown
|
|
|
|
// TODO: send as Markdown
|
|
|
|
send_message(RoomMessageEventContent::text_plain(&msg), guard, &state_lock);
|
|
|
|
send_message(RoomMessageEventContent::text_plain(&msg), guard, &state_lock);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
AdminCommand::RegisterAppservice(yaml) => {
|
|
|
|
AdminCommand::RegisterAppservice(yaml) => {
|
|
|
|
guard.appservice.register_appservice(yaml).unwrap(); // TODO handle error
|
|
|
|
guard.appservice.register_appservice(yaml).unwrap(); // TODO handle error
|
|
|
|