summaryrefslogtreecommitdiff
path: root/structures.h
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-09-14 17:57:07 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-09-14 17:57:07 +0100
commite1f41810ac85a0d210062ed33f43938dc4b03be4 (patch)
tree24e100886b063dfe8aa49d6881070b9e238296c4 /structures.h
parente546de81cbecac2b02d29a02d6c6fd7d0785d739 (diff)
Implement arrays in the configuration file and start using them to allow for multiple connect commands.
Diffstat (limited to 'structures.h')
-rw-r--r--structures.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/structures.h b/structures.h
index e58c1b1..8a99163 100644
--- a/structures.h
+++ b/structures.h
@@ -29,6 +29,7 @@
#define MAXAUTOCHANLEN 1024 // Randomly picked maximum length of the auto channel list
#define CLIENTCODELEN 17 // Max length of a client code + 1 for null
#define MAXCLIENTCODES 64 // Max number of client codes to track
+#define MAXCONFARR 10 // Max number of entries that a configuration array can have
struct ircdstate {
char greeting001[MAXDATASIZE];
@@ -70,7 +71,7 @@ struct settings {
char ircserver[HOST_NAME_MAX];
char ircserverport[MAXPORTLEN];
char ircserverpassword[MAXDATASIZE - 5]; // -5 for "PASS "
- char connectcommand[MAXDATASIZE];
+ char connectcommands[MAXCONFARR][MAXDATASIZE];
char conffile[PATH_MAX];
char certfile[PATH_MAX];
char keyfile[PATH_MAX];