# __NETWORK_NAME__ — admin & moderator cheat sheet Two places to work: - **From IRC**, as an operator — moderation, accounts, channels. Any moderator. - **On the host**, via `ergoctl` — the server itself. Needs root/SSH. --- ## Become an operator ``` /OPER ``` Per connection: do it again each time you reconnect. Operator status is hidden from ordinary users. Passwordless login by TLS certificate is available — see "Operators" in the deployment README. --- ## Moderation — from IRC `UBAN` is the one command for bans; it works out whether you gave it an IP, a CIDR, a `nick!user@host` mask or an account name. | Task | Command | |---|---| | Look someone up first | `UBAN INFO ` (shows their real IP) | | Ban an address | `UBAN ADD 203.0.113.9 DURATION 1d spamming` | | Ban a range | `UBAN ADD 203.0.113.0/24 DURATION 7d` | | Suspend an account | `UBAN ADD DURATION 30d` | | Lift a ban | `UBAN DEL ` | | List bans | `UBAN LIST` | | Disconnect someone | `KILL :reason` | | Require accounts, network-wide | `DEFCON 4` (`DEFCON 5` = normal) | > A **bare name** is treated as an *account*, not a connected nick. For someone > who isn't registered, `UBAN INFO` them and ban the IP. Durations: `1y 12mo 31d 10h 8m 13s`. Omit `DURATION` for permanent. **Always-on users** stay reachable while disconnected — banning the account (`UBAN ADD `) is what removes them, not `KILL`. ### Channels | Task | Command | |---|---| | Join a channel you can't enter | `SAJOIN #channel` | | Force a mode change | `SAMODE #channel +m` | | Kick | `/kick #channel nick reason` | | Ban from a channel | `/mode #channel +b nick!*@*` | | Ask the server how best to ban | `/msg ChanServ HOWTOBAN #channel ` | | Blacklist a channel entirely | `/msg ChanServ PURGE ADD #channel reason` | | Undo that | `/msg ChanServ PURGE DEL #channel` | ### Accounts | Task | Command | |---|---| | Register for someone | `/msg NickServ SAREGISTER ` | | Reset a password | `/msg NickServ PASSWD ` | | Suspend | `/msg NickServ SUSPEND ADD DURATION 30d reason` | | Unsuspend / list | `/msg NickServ SUSPEND DEL ` · `SUSPEND LIST` | | Erase permanently | `/msg NickServ ERASE ` (two-step, returns a code) | Two-step commands (`ERASE`, `CS UNREGISTER`, `TRANSFER`, `PURGE`) reply with a confirmation code — repeat the command with the code appended. --- ## The server — on the host ```bash ergoctl status # health, versions, TLS, users, scheduled jobs ergoctl users # who's on ergoctl logs -f # live server log ergoctl announce # notice to everyone ergoctl cmd # run any of the above as the admin oper ``` | Task | Command | |---|---| | Edit config (validates, then applies) | `ergoctl edit` | | Edit the rules shown on connect | `ergoctl motd` | | Apply config without disconnecting anyone | `ergoctl rehash` | | Restart (drops every user) | `ergoctl restart` | | Add a moderator | `ergoctl oper add chat-moderator` | | Add an admin | `ergoctl oper add server-admin` | | Certificate login for an oper | `ergoctl oper certfp --auto` | | Back up config + database + history | `ergoctl backup` | | Restore | `ergoctl restore ` | | Check / renew TLS | `ergoctl cert` · `ergoctl cert sync` | | Check for updates | `ergoctl update check` | | Update now (snapshot + rollback) | `ergoctl update update` | | Message history backend | `ergoctl history [sqlite\|postgres\|off]` | `ergoctl help` lists everything. --- ## Mode reference **Channel modes** — `/mode #channel +X` | | | | | |---|---|---|---| | `i` | invite only | `m` | moderated (voiced+ may speak) | | `k` | requires a key | `n` | no messages from outside | | `l` | user limit | `s` | secret (hidden from `/list`) | | `R` | registered users only | `t` | ops set the topic | | `M` | registered users may speak | `C` | no CTCP | | `U` | op-moderated (unvoiced msgs go to ops) | `u` | auditorium | | `b` | ban mask | `e` | ban exception | | `I` | invite exception | `f` | forward to another channel | **Member prefixes** — `/mode #channel +o nick` | | | | | | |---|---|---|---|---| | `q` `~` | founder | `a` `&` | admin | `o` `@` | op | | `h` `%` | half-op | `v` `+` | voice | | | Make any of these stick across reconnects with `/msg ChanServ AMODE #channel +o account`. **User modes** — `/mode yournick +X` | | | | | |---|---|---|---| | `i` | invisible | `R` | only registered users may PM you | | `T` | block CTCP | `B` | mark as a bot | | `Z` | secure connection (automatic) | `s` | receive server notices (opers) | --- ## When things go wrong | Symptom | Do this | |---|---| | Clients reject the certificate | `ergoctl cert` — if it says SELF-SIGNED, check DNS and ports 80/443, then `ergoctl cert sync` | | Config change didn't take | Some settings only apply at startup — `ergoctl restart` | | Rehash refused a change | The file is kept and reverted; the server's own error is printed | | Server won't start after an edit | `ergoctl logs` shows the failing line; restore `ircd.yaml.last-good` | | Update broke something | It rolls back automatically; `ergoctl status` confirms, and `backups/` holds a database snapshot | | Locked out of `/OPER` | The password is in `secrets/admin.pass` on the host — `ergoctl passwd show` | | Spam flood in progress | `DEFCON 4` requires accounts network-wide until you set `DEFCON 5` | Full detail lives in [`README.md`](README.md).