services: label as network service in whois
All checks were successful
CI / check (push) Successful in 3m44s
All checks were successful
CI / check (push) Successful in 3m44s
This commit is contained in:
parent
952078aa7e
commit
b87a0c56a2
5 changed files with 29 additions and 1 deletions
|
|
@ -285,10 +285,18 @@ pub struct Server {
|
|||
// services server U-lined), bot, block-CTCP. Set per the ircd's loaded modules.
|
||||
#[serde(default = "default_service_modes")]
|
||||
pub service_modes: String,
|
||||
// Oper type the service pseudo-clients are flagged with, so WHOIS shows
|
||||
// "is a <this>". Default "Network Service". Empty leaves them non-opers.
|
||||
#[serde(default = "default_service_oper_type")]
|
||||
pub service_oper_type: String,
|
||||
}
|
||||
|
||||
fn default_service_modes() -> String {
|
||||
"iHkBT".to_string()
|
||||
"ikBT".to_string()
|
||||
}
|
||||
|
||||
fn default_service_oper_type() -> String {
|
||||
"Network Service".to_string()
|
||||
}
|
||||
|
||||
fn default_protocol() -> u32 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue