From cbaaaf96ed8217933429e1e7bec93db35040ae99 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Sun, 15 Sep 2019 20:21:36 +0100 Subject: Remove nicks from channels when reconnecting, before re-JOINing them. --- message.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/message.c b/message.c index 6b88871..e7139bc 100644 --- a/message.c +++ b/message.c @@ -127,6 +127,11 @@ int processservermessage(SSL *server_ssl, char *str, struct client *clients, int continue; } + // Remove nicks in the channel, we will re-get them when re-JOINing + for (int j = 0; j < MAXCHANNICKS; j++) { + channels[i].nicks[j][0] = '\0'; + } + debugprint(DEBUG_SOME, "Reconnection: Re-joining '%s'.\n", channels[i].name); char joinmsg[MAXDATASIZE]; -- cgit v1.2.3