summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--message.c5
1 files changed, 5 insertions, 0 deletions
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];