From 9db9fb396aaf601bd00f2b62face2693307a0e16 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Tue, 11 Jun 2019 19:50:17 +0100 Subject: Refactoring - rename ircdstrings struct to ircdstate since it doesn't just contain strings. --- structures.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'structures.h') 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]; -- cgit v1.2.3