helpmode: oper-settable user mode +h (helpop) shown in whois

This commit is contained in:
Jean Chevronnet 2026-08-10 09:01:38 +00:00
parent 512185d6df
commit 71d6e7441b
4 changed files with 34 additions and 2 deletions

View file

@ -30,6 +30,7 @@ pub struct UserFlags {
pub snomask: bool, // +s (oper: receive server notices)
pub callerid: bool, // +g (only accept PMs from users on the ACCEPT list)
pub showwhois: bool, // +W (get a notice when someone WHOISes you)
pub helpop: bool, // +h (helpop: available for help; shown in WHOIS)
pub deny_uncommon: bool, // +c (only users sharing a channel may PM you)
pub nick_locked: bool, // NICKLOCK: services/oper holds this nick (no self-change)
pub via_webirc: bool, // connected through a WEBIRC gateway (securitygroups)
@ -82,6 +83,9 @@ impl UserFlags {
if self.showwhois {
s.push('W');
}
if self.helpop {
s.push('h');
}
if self.deny_uncommon {
s.push('c');
}
@ -465,7 +469,7 @@ impl Server {
uid,
RPL_MYINFO,
&format!(
"{} echoircd-{VERSION} iowxsgBDIHrRzWc qaohvbeIklimnpstzCTcSNORMfjFLgGuBQAPJUdKXwD",
"{} echoircd-{VERSION} iowxsgBDIHrRzWhc qaohvbeIklimnpstzCTcSNORMfjFLgGuBQAPJUdKXwD",
self.name
),
);