Add NickServ LOGOUT command
Clears the account (RPL_LOGGEDOUT) and renames the user to a configurable guest nick (default Guest) via SVSNICK.
This commit is contained in:
parent
a382ac8ad3
commit
60fc687162
7 changed files with 77 additions and 2 deletions
|
|
@ -25,12 +25,21 @@ pub struct Server {
|
|||
// on the single-threaded link matters more than verifier strength.
|
||||
#[serde(default = "default_scram_iterations")]
|
||||
pub scram_iterations: u32,
|
||||
// Nick prefix a user is renamed to on NickServ LOGOUT (they keep the ircd's
|
||||
// guest number appended, e.g. Guest12345). Must start with a letter — the
|
||||
// ircd rejects a digit-leading SVSNICK and falls back to the raw uuid.
|
||||
#[serde(default = "default_guest_nick")]
|
||||
pub guest_nick: String,
|
||||
}
|
||||
|
||||
fn default_protocol() -> u32 {
|
||||
1206 // InspIRCd 4 spanning-tree protocol (1205 = insp3)
|
||||
}
|
||||
|
||||
fn default_guest_nick() -> String {
|
||||
"Guest".to_string()
|
||||
}
|
||||
|
||||
fn default_scram_iterations() -> u32 {
|
||||
crate::engine::scram::DEFAULT_ITERATIONS
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue