From e9d4ad3c33b81ff56c4e4b2cac4aad559a303104 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Sun, 15 Sep 2019 14:47:44 +0100 Subject: Start tracking nicks in channels (upon JOIN/PART/QUIT/NICK) and use that to correctly log QUITs in the replay log and normal log(s). --- structures.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'structures.h') diff --git a/structures.h b/structures.h index 8d68083..02b13b8 100644 --- a/structures.h +++ b/structures.h @@ -30,6 +30,7 @@ #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 +#define MAXCHANNICKS 8192 // Maximum number of nicks to track per channel struct ircdstate { char greeting001[MAXDATASIZE]; @@ -118,6 +119,7 @@ struct channel { // TODO - Make this an int? It's just going to arrive and leave as a string every time anyway... char topicwhen[11]; // 32-bit unixtime is up to 10 characters (+1 for null char) We use "0" to mean "not set". int gotnames; // Have we finished getting the RPL_NAMREPLYs for this channel yet? + char nicks[MAXCHANNICKS][MAXNICKLENGTH]; // Nicks in the channel to track things like nick changes and quits for log files }; #endif -- cgit v1.2.3