Commit cbaaaf96 authored by Luke Bratch's avatar Luke Bratch
Browse files

Remove nicks from channels when reconnecting, before re-JOINing them.

parent c600744e
......@@ -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];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment