diff options
author | Timo Sirainen <cras@irssi.org> | 2000-12-22 13:02:33 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-12-22 13:02:33 +0000 |
commit | ae030c43029da2b3daf154523878033ca7366dec (patch) | |
tree | ab280d4ad7148eeed210f3db56bb6ffff0582606 | |
parent | 06a6428d833c3242e45e09e1bafb1f06f478fb2b (diff) | |
download | irssi-ae030c43029da2b3daf154523878033ca7366dec.zip |
Fix for handling duplicate channels
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1018 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/irc/core/channel-events.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/irc/core/channel-events.c b/src/irc/core/channel-events.c index e6c1839c..ff53d9b0 100644 --- a/src/irc/core/channel-events.c +++ b/src/irc/core/channel-events.c @@ -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); |