diff options
author | Luke Bratch <luke@bratch.co.uk> | 2019-09-14 20:44:32 +0100 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2019-09-14 20:44:32 +0100 |
commit | 4dea4c16313ba3d1575cfa6722d75492c907f551 (patch) | |
tree | cade95813a471e3aa4597a5a35e907e2cd675181 /structures.h | |
parent | e1f41810ac85a0d210062ed33f43938dc4b03be4 (diff) |
Specify multiple nicks using a configuration array instead of multiple individual settings.
Diffstat (limited to 'structures.h')
-rw-r--r-- | structures.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/structures.h b/structures.h index 8a99163..8d68083 100644 --- a/structures.h +++ b/structures.h @@ -39,7 +39,7 @@ struct ircdstate { char greeting005a[MAXDATASIZE]; char greeting005b[MAXDATASIZE]; char greeting005c[MAXDATASIZE]; - char ircdname[MAXDATASIZE]; + char ircdname[MAXDATASIZE]; // In both settings and ircdstate as settings is from our file whereas server may change ircdstate copy char nickuserhost[MAXDATASIZE]; char ircnick[MAXNICKLENGTH]; char ircusername[MAXUSERNAMELEN]; @@ -61,9 +61,7 @@ struct settings { char replaymode[MAXDATASIZE]; int replayseconds; char clientport[MAXPORTLEN]; - char ircnick[MAXNICKLENGTH]; // In both settings and ircdstate as settings is from our file whereas server may change ircdstate copy - char ircnick2[MAXNICKLENGTH]; - char ircnick3[MAXNICKLENGTH]; + char ircnicks[MAXCONFARR][MAXDATASIZE]; // MAXDATASIZE instead of MAXNICKLENGTH so getconfarr() only has one string size to deal with char ircusername[MAXUSERNAMELEN]; // (Is this also true for the username? Can the server change that?) char ircrealname[MAXREALNAMELEN]; char password[MAXDATASIZE]; |