implement admin command to force join all local users to room

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry committed 2024-10-28 20:52:52 -04:00
1 parent c71db93e22
commit 567a4cb441
2 files changed
+109 -5

No files matched your search

+13 -1
View File
@@ -130,7 +130,7 @@ pub(super) enum UserCommand {
///
/// Specify a codeblock of usernames.
///
/// At least 1 server admin must be in the room to prevent abuse.
/// At least 1 server admin must be in the room to reduce abuse.
///
/// Requires the `--yes-i-want-to-do-this` flag.
ForceJoinListOfLocalUsers {
@@ -139,4 +139,16 @@ pub(super) enum UserCommand {
#[arg(long)]
yes_i_want_to_do_this: bool,
},
/// - Force joins all local users to the specified room.
///
/// At least 1 server admin must be in the room to reduce abuse.
///
/// Requires the `--yes-i-want-to-do-this` flag.
ForceJoinAllLocalUsers {
room_id: OwnedRoomOrAliasId,
#[arg(long)]
yes_i_want_to_do_this: bool,
},
}