implement admin command to force join list of local users

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-10-28 18:28:56 -04:00
parent 0a281241ef
commit c71db93e22
2 changed files with 153 additions and 1 deletions

View file

@ -124,4 +124,19 @@ pub(super) enum UserCommand {
RedactEvent {
event_id: Box<EventId>,
},
/// - Force joins a specified list of local users to join the specified
/// room.
///
/// Specify a codeblock of usernames.
///
/// At least 1 server admin must be in the room to prevent abuse.
///
/// Requires the `--yes-i-want-to-do-this` flag.
ForceJoinListOfLocalUsers {
room_id: OwnedRoomOrAliasId,
#[arg(long)]
yes_i_want_to_do_this: bool,
},
}