If JOIN is sent to channel you've already joined, assume a missing PART and

resync the channel (instead of just ignoring as before). Patch by dg.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3099 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2003-01-21 08:15:33 +00:00 committed by cras
parent eff24e706e
commit 8070bb6704

View File

@ -253,12 +253,11 @@ static void event_join(IRC_SERVER_REC *server, const char *data, const char *nic
chanrec = irc_channel_find(server, channel); chanrec = irc_channel_find(server, channel);
if (chanrec != NULL && chanrec->joined) { if (chanrec != NULL && chanrec->joined) {
/* already joined this channel - this check was added /* already joined this channel - probably a broken proxy that
here because of broken irssi proxy :) */ forgot to send PART between */
g_free(shortchan); chanrec->left = TRUE;
g_free(params); channel_destroy(CHANNEL(chanrec));
return; chanrec = NULL; }
}
if (chanrec == NULL) { if (chanrec == NULL) {
/* look again, because of the channel name cut issues. */ /* look again, because of the channel name cut issues. */