add: temporary bans
This commit is contained in:
parent
9650c0177e
commit
155fe34c6e
11 changed files with 132 additions and 19 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue