Split disable_room, ban_room functions

This commit is contained in:
dasha_uwu committed 2025-08-28 23:28:13 +05:00
1 parent a4f589f475
commit 4884c55be7
3 files changed
+20 -34

No files matched your search

+2 -6
View File
@@ -6,17 +6,13 @@ use crate::{admin_command, get_room_info};
#[admin_command]
pub(super) async fn disable_room(&self, room_id: OwnedRoomId) -> Result {
self.services
.metadata
.disable_room(&room_id, true);
self.services.metadata.disable_room(&room_id);
self.write_str("Room disabled.").await
}
#[admin_command]
pub(super) async fn enable_room(&self, room_id: OwnedRoomId) -> Result {
self.services
.metadata
.disable_room(&room_id, false);
self.services.metadata.enable_room(&room_id);
self.write_str("Room enabled.").await
}