add: temporary bans

This commit is contained in:
trisua 2025-08-05 13:39:01 -04:00
parent 9650c0177e
commit 155fe34c6e
11 changed files with 132 additions and 19 deletions

View file

@ -92,6 +92,9 @@ pub struct User {
/// users, but their data is not wiped.
#[serde(default)]
pub is_deactivated: bool,
/// The time at which the user's ban will automatically expire.
#[serde(default)]
pub ban_expire: usize,
}
pub type UserConnections =
@ -408,6 +411,7 @@ impl User {
ban_reason: String::new(),
channel_mutes: Vec::new(),
is_deactivated: false,
ban_expire: 0,
}
}