• exec/load/ircd/server.js

    From Deuc¿@VERT to Git commit to main/sbbs/m on Fri Oct 23 18:01:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/2bdc4c33406bba9451bef6e1
    Modified Files:
    exec/load/ircd/server.js exec/tests/ircd/network.js state.js
    Log Message:
    ircd: avoid mode churn when applying channel snapshots

    Applying CSYNC used to clear every channel mode, op, voice and ban before restoring the hub snapshot. Reconnecting leaves consequently displayed
    local removals followed by hub additions even when their state matched.

    Reconcile the authoritative snapshot against existing state instead. Remove obsolete flags, statuses and bans, add missing entries, and update changed keys, limits and channel age without resetting matching state. Preserve the setter, timestamp and spelling of retained bans. Keep hub authorization
    and the existing protections against resurrecting departed users.

    Add regressions for silent identical snapshots, exact state differences,
    fresh channels and repeated corrections in a six-server network.

    Validation: 63 state tests, 30 network tests and 9 visibility tests with an actual v2.0 leaf passed.

    Reported by Accession on irc.
  • From Deuc¿@VERT to Git commit to main/sbbs/m on Tue Oct 27 21:25:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/01f5dfe2e81ec5ef0437b51b
    Modified Files:
    exec/load/ircd/server.js services-core.js services.js services.md exec/tests/ircd/exceptions-network.py services-exceptions.js services-expiry.js state.js
    Log Message:
    ircd: keep ChanServ outside registered channels

    Stop joining and opping ChanServ during registration, enforcement and startup. Let empty channels disappear while retaining registrations in SQLite; restore saved mode locks, kept topics, managed exceptions and authenticated access on recreation.

    Allow trusted services users to issue INVITEs without channel ops and normalize local invitation channel names. Keep the op check for ordinary users and document older INVITE parser limitations.

    Cover empty-channel lifecycle, authority restart, policy restoration and outside invites. Validate native networks with v1.3 and v2.0 leaves alongside existing services, expiry and network-state regressions.