echo/chanserv/src
Jean 253d4c2a2d
Add lazy inactivity-expiry for accounts and channels
Accounts and channels now carry a last-activity stamp and are dropped
once inactive past a configured threshold. A login stamps the account, a
join stamps the channel — both coalesced to at most one log entry per day
so routine traffic doesn't bloat the log, and stamps replicate so
activity on any node keeps a record alive network-wide.

Expiry is lazy in the proven style: a periodic pass computes it from the
stored stamps with no per-record timer, reusing the same relation the
vhost and suspension expiries use. The sweep spares operator accounts,
accounts with a live session, occupied channels, and anything an operator
has pinned with the new NOEXPIRE command (NickServ NOEXPIRE <account>,
ChanServ NOEXPIRE <#channel>, both Priv::Admin). Each expiry is announced
to the audit channel and clears the channel's +r.

Configured under [expire] (accounts_days / channels_days); a zero or
omitted field leaves that kind never expiring, and omitting the section
disables expiry entirely.
2026-07-14 00:02:36 +00:00
..
access.rs modules: split services and the ircd link into external crates 2026-07-13 01:33:56 +00:00
akick.rs modules: split services and the ircd link into external crates 2026-07-13 01:33:56 +00:00
ban.rs chanserv: SET PEACE (block acting against equal-or-higher access) 2026-07-13 03:06:58 +00:00
clone.rs modules: split services and the ircd link into external crates 2026-07-13 01:33:56 +00:00
enforce.rs modules: split services and the ircd link into external crates 2026-07-13 01:33:56 +00:00
entrymsg.rs modules: split services and the ircd link into external crates 2026-07-13 01:33:56 +00:00
getkey.rs modules: split services and the ircd link into external crates 2026-07-13 01:33:56 +00:00
invite.rs modules: split services and the ircd link into external crates 2026-07-13 01:33:56 +00:00
kick.rs chanserv: SET PEACE (block acting against equal-or-higher access) 2026-07-13 03:06:58 +00:00
lib.rs Add lazy inactivity-expiry for accounts and channels 2026-07-14 00:02:36 +00:00
list.rs chanserv: SET SIGNKICK and PRIVATE (typed channel settings) 2026-07-13 02:54:46 +00:00
mode.rs modules: split services and the ircd link into external crates 2026-07-13 01:33:56 +00:00
noexpire.rs Add lazy inactivity-expiry for accounts and channels 2026-07-14 00:02:36 +00:00
op.rs chanserv: SET PEACE (block acting against equal-or-higher access) 2026-07-13 03:06:58 +00:00
seen.rs modules: split services and the ircd link into external crates 2026-07-13 01:33:56 +00:00
set.rs Clippy sweep: clean across the workspace 2026-07-13 23:30:51 +00:00
status.rs modules: split services and the ircd link into external crates 2026-07-13 01:33:56 +00:00
suspend.rs chanserv: channel SUSPEND / UNSUSPEND (oper-gated) 2026-07-13 04:17:17 +00:00
topic.rs modules: split services and the ircd link into external crates 2026-07-13 01:33:56 +00:00
unban.rs modules: split services and the ircd link into external crates 2026-07-13 01:33:56 +00:00
xop.rs modules: split services and the ircd link into external crates 2026-07-13 01:33:56 +00:00