Handle the account-registration relay from an ircd

As the registration authority, fedserv accepts an account-registration request
relayed over the server link (ACCTREGISTER), creates the account through the
same store as classic NickServ REGISTER, and replies (ACCTREGRESULT) with
success or an error carrying the IRCv3 FAIL code — one account-creation path for
both the classic command and the draft/account-registration capability.
This commit is contained in:
Jean Chevronnet 2026-07-11 20:38:28 +00:00
parent 9285105afd
commit 18a28ed49b
No known key found for this signature in database
3 changed files with 53 additions and 1 deletions

View file

@ -12,6 +12,8 @@ pub enum NetEvent {
Privmsg { from: String, to: String, text: String },
UserConnect { uid: String, nick: String },
Quit { uid: String },
// An ircd relaying an IRCv3 account-registration request to us as the authority.
AccountRequest { reqid: String, origin: String, kind: String, account: String, p2: String, p3: String },
Unknown { line: String },
}
@ -24,6 +26,7 @@ pub enum NetAction {
IntroduceUser { uid: String, nick: String, ident: String, host: String, gecos: String },
Privmsg { from: String, to: String, text: String },
Notice { from: String, to: String, text: String },
AccountResponse { reqid: String, kind: String, account: String, status: String, code: String, message: String },
Raw(String),
}