diff options
author | Luke Bratch <luke@bratch.co.uk> | 2019-06-11 19:50:17 +0100 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2019-06-11 19:50:17 +0100 |
commit | 9db9fb396aaf601bd00f2b62face2693307a0e16 (patch) | |
tree | 2c5603a723899c0f5a4ec129cdaee1e5b1f6b556 /structures.h | |
parent | f660bbd1bfed3fbd36d684cd2f09ca1520520557 (diff) |
Refactoring - rename ircdstrings struct to ircdstate since it doesn't just contain strings.
Diffstat (limited to 'structures.h')
-rw-r--r-- | structures.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/structures.h b/structures.h index 5b9c2c0..ac68ba9 100644 --- a/structures.h +++ b/structures.h @@ -28,8 +28,7 @@ #define MAXPORTLEN 6 // Up to 65535, so 5 characters + 1 for null #define MAXAUTOCHANLEN 1024 // Randomly picked maximum length of the auto channel list -// TODO - Rename this or split into multiple structs since it's no longer strictly just IRCd strings -struct ircdstrings { +struct ircdstate { char greeting001[MAXDATASIZE]; char greeting002[MAXDATASIZE]; char greeting003[MAXDATASIZE]; @@ -55,7 +54,7 @@ struct ircdstrings { struct settings { int replayseconds; char clientport[MAXPORTLEN]; - char ircnick[MAXNICKLENGTH]; // In both settings and ircdstrings as settings is from our file whereas server may change ircdstrings copy + char ircnick[MAXNICKLENGTH]; // In both settings and ircdstate as settings is from our file whereas server may change ircdstate copy char ircusername[MAXUSERNAMELEN]; // (Is this also true for the username? Can the server change that?) char ircrealname[MAXREALNAMELEN]; char autochannels[MAXAUTOCHANLEN]; |