NickServ: show last-seen (and online status) in INFO

The account's last-active time was tracked but never surfaced. INFO now
reports it, reading 'now (online)' when the account has a live session.
Threads NetView into the INFO handler for the session lookup and carries
last_seen on AccountView.
This commit is contained in:
Jean Chevronnet 2026-07-16 01:56:51 +00:00
parent 2c4bc9079c
commit 39d7421c06
No known key found for this signature in database
5 changed files with 22 additions and 4 deletions

View file

@ -464,6 +464,8 @@ pub struct AccountView {
// Personal greet shown by a bot when this account joins a greet-enabled
// channel (empty = none).
pub greet: String,
// Unix time this account was last active (coalesced); never below `ts`.
pub last_seen: u64,
}
// One channel access-list entry (account -> level). `level` is either a legacy