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:
parent
3c594edf07
commit
ef3cb01e6f
@ -159,6 +159,14 @@ static void event_join(const char *data, IRC_SERVER_REC *server, const char *nic
|
||||
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);
|
||||
if (chanrec == NULL) {
|
||||
/* didn't get here with /join command.. */
|
||||
|
Loading…
Reference in New Issue
Block a user