1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-30 06:45:25 +00:00

Fix for handling duplicate channels

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1018 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-12-22 13:02:33 +00:00 committed by cras
parent 06a6428d83
commit ae030c4302

View File

@ -67,8 +67,9 @@ static void event_duplicate_channel(IRC_SERVER_REC *server, const char *data)
p = strchr(channel, ' ');
if (p != NULL) *p = '\0';
if (channel[0] == '!' && channel[1] == '!') {
chanrec = channel_find(SERVER(server), channel+1);
if (channel[0] == '!') {
chanrec = channel_find(SERVER(server),
channel+(channel[1] == '!'));
if (chanrec != NULL && !chanrec->names_got) {
chanrec->left = TRUE;
channel_destroy(chanrec);