From 4dea4c16313ba3d1575cfa6722d75492c907f551 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Sat, 14 Sep 2019 20:44:32 +0100 Subject: Specify multiple nicks using a configuration array instead of multiple individual settings. --- blabouncer.conf.example | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) (limited to 'blabouncer.conf.example') diff --git a/blabouncer.conf.example b/blabouncer.conf.example index 12727c9..0513fdc 100644 --- a/blabouncer.conf.example +++ b/blabouncer.conf.example @@ -1,18 +1,34 @@ # blabouncer configuration file # -# Entries must be in the form: +# Normal entries must be in the form: # option name, space, equals sign, space, double quote, option value, double quote # e.g. # realname = "Mr Bla Bouncer" # +# Array entries must be in the form: +# option name, space, equals sign, space, open brace +# (optional indentation,) double quote, element value, double quoute +# (optional multiple values to be repeated after the first one(s)) +# close brace +# e.g. +# connectcommands = { +# "PRIVMSG NickServ IDENTIFY bananas" +# "PRIVMSG myfriend I'm online!" +# } +# # Shell expansion is not supported, so do not try and specify e.g. # "~/.blabouncer/" or "$HOME/.blabouncer/", instead use "/home/foo/.blabouncer" # # Some settings can be reloaded at runtime, please refer to README for details. -nick = "blabounce" -nick2 = "bbounce2" -nick3 = "bbounce3" +# Nick(s) to use when connecting - will be cycled through in order in the event of +# a nick being in use or invalid +nicks = { + "blabounce" + "bbounce2" + "bbounce3" +} + username = "bounceusr" realname = "Mr Bla Bouncer" @@ -57,8 +73,11 @@ ircserverport = "6697" # Real IRC server password #ircserverpassword = "apples" -# Command to send to the server upon completing registration (e.g. a NickServ password) -#connectcommand "PRIVMSG NickServ IDENTIFY bananas" +# Command(s) to send to the server upon completing registration (e.g. a NickServ password) +#connectcommands = { +# "PRIVMSG NickServ IDENTIFY bananas" +# "PRIVMSG myfriend I'm online!" +#} # Base directory (defaults to $HOME/.blabouncer/) # Things such as the logs directory will be placed below this -- cgit v1.2.3