bnc
bnc copied to clipboard
Settings
There are lots of weird little settings to configure when using a bouncer. Nick to use, altnick, username/realname to send, etc.
@prawnsalad recommends that we for the most part clone how weechat does it, with keys like irc.<netname>.nick
and similar. I'm a fan of that.
Commands:
-
/msg *status set <key> <value>
- sets the given key to the value. -
/msg *status unset <key>
- unsets the given key if appropriate. -
/msg *status iset <searchstring>
- searches for any keys matching the search string, displays them. This roughly matches how/iset
is used in weechat, and should help discoverability.
Given it's a key/value format for settings, in the datastore we can just prepend them with a standard key prefix used for settings. Something along the lines of these:
settings.global <key> <value> (admin settings shared across the whole bnc)
settings.user <user> <key> <value> (default nickname, username, etc)
settings.network <user> <network> <key> <value> (network nick, user, realname, etc)
By default we'll work out whether it's a global, user or network key based on the syntax (for instance, irc.*
keys are always user-scoped, etc).
Of course, add *controlpanel
aliases so that peeps familiar with ZNC can continue using their syntax instead of ours.