Track login state and nick changes in NickServ

This commit is contained in:
Jean Chevronnet 2026-07-12 05:45:33 +00:00
parent 60fc687162
commit 65729a62b8
No known key found for this signature in database
6 changed files with 150 additions and 5 deletions

View file

@ -1,10 +1,12 @@
use crate::engine::db::Db;
use crate::proto::{NetAction, RegReply};
// Who sent the command, resolved by the engine (UID + current nick).
// Who sent the command, resolved by the engine (UID + current nick + the
// account they are identified to, if any).
pub struct Sender<'a> {
pub uid: &'a str,
pub nick: &'a str,
pub account: Option<&'a str>,
}
// A pseudo-client (NickServ, ChanServ, ...). Introduced at burst, receives the