Hostmask-based admin controls with automatic IRCOP detection via WHO. Permission enforcement in the central dispatch path denies restricted commands to non-admins. Includes !whoami and !admins commands, marks load/reload/unload as admin-only. Also lands previously-implemented SASL PLAIN auth, token-bucket rate limiting, and CTCP VERSION/TIME/PING responses that were staged but uncommitted. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
595 B
Plaintext
25 lines
595 B
Plaintext
[server]
|
|
host = "irc.libera.chat"
|
|
port = 6697
|
|
tls = true
|
|
nick = "derp"
|
|
user = "derp"
|
|
realname = "derp IRC bot"
|
|
password = ""
|
|
# sasl_user = "account" # SASL PLAIN username (optional)
|
|
# sasl_pass = "secret" # SASL PLAIN password (optional)
|
|
|
|
[bot]
|
|
prefix = "!"
|
|
channels = ["#test"]
|
|
plugins_dir = "plugins"
|
|
# rate_limit = 2.0 # Messages per second (default: 2.0)
|
|
# rate_burst = 5 # Burst capacity (default: 5)
|
|
# admins = [ # Hostmask patterns (fnmatch), IRCOPs auto-detected
|
|
# "*!~user@trusted.host",
|
|
# "ops!*@*.ops.net",
|
|
# ]
|
|
|
|
[logging]
|
|
level = "info"
|