1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Check that we're not already joined the channel when receiving JOIN

event, just to fix an irssi proxy bug..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@565 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-07-31 22:10:18 +00:00 committed by cras
parent 3c594edf07
commit ef3cb01e6f

View File

@ -159,6 +159,14 @@ static void event_join(const char *data, IRC_SERVER_REC *server, const char *nic
g_free(shortchan); g_free(shortchan);
} }
chanrec = channel_find(server, channel);
if (chanrec != NULL && chanrec->joined) {
/* already joined this channel - this check was added
here because of broken irssi proxy :) */
g_free(params);
return;
}
chanrec = channel_find_unjoined(server, channel); chanrec = channel_find_unjoined(server, channel);
if (chanrec == NULL) { if (chanrec == NULL) {
/* didn't get here with /join command.. */ /* didn't get here with /join command.. */