whois: add 307 (is a registered nick) for identified users and 379 (is using modes) for opers/self

This commit is contained in:
Jean Chevronnet 2026-08-15 16:46:10 +00:00
parent 35af95fd0f
commit 309201d7fb
2 changed files with 24 additions and 0 deletions

View file

@ -96,6 +96,8 @@ pub const RPL_ENDOFWHOIS: u16 = 318;
pub const RPL_WHOISOPERATOR: u16 = 313; // "is an IRC operator" (hidden by +H)
pub const RPL_WHOISBOT: u16 = 335; // "is a bot" (umode +B)
pub const RPL_WHOISACCOUNT: u16 = 330; // "<nick> <account> :is logged in as"
pub const RPL_WHOISREGNICK: u16 = 307; // "is a registered nick" (identified to an account)
pub const RPL_WHOISMODES: u16 = 379; // oper/self-only: "is using modes +<umodes>"
pub const ERR_NEEDREGGEDNICK: u16 = 477; // chan +R/+M — must be logged into an account
pub const RPL_WHOISHOST: u16 = 378; // oper-only: real host/ip behind a cloak
pub const RPL_WHOISSECURE: u16 = 671; // "is using a secure connection" (sslinfo)