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). --- blabouncer.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'blabouncer.c') diff --git a/blabouncer.c b/blabouncer.c index 772b969..d6df294 100644 --- a/blabouncer.c +++ b/blabouncer.c @@ -438,6 +438,10 @@ void dochat(int *serversockfd, int *clientsockfd, struct settings *settings) { // Set initial channel names to empty strings for (int i = 0; i < MAXCHANNELS; i++) { channels[i].name[0] = '\0'; + // And all the nicks within it + for (int j = 0; j < MAXCHANNICKS; j++) { + channels[i].nicks[j][0] = '\0'; + } } // Initialise OpenSSL (used for both client and server) -- cgit v1.2.3