summaryrefslogtreecommitdiff
path: root/structures.h
diff options
context:
space:
mode:
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];