mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05: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:
parent
06a6428d83
commit
ae030c4302
@ -67,8 +67,9 @@ static void event_duplicate_channel(IRC_SERVER_REC *server, const char *data)
|
|||||||
p = strchr(channel, ' ');
|
p = strchr(channel, ' ');
|
||||||
if (p != NULL) *p = '\0';
|
if (p != NULL) *p = '\0';
|
||||||
|
|
||||||
if (channel[0] == '!' && channel[1] == '!') {
|
if (channel[0] == '!') {
|
||||||
chanrec = channel_find(SERVER(server), channel+1);
|
chanrec = channel_find(SERVER(server),
|
||||||
|
channel+(channel[1] == '!'));
|
||||||
if (chanrec != NULL && !chanrec->names_got) {
|
if (chanrec != NULL && !chanrec->names_got) {
|
||||||
chanrec->left = TRUE;
|
chanrec->left = TRUE;
|
||||||
channel_destroy(chanrec);
|
channel_destroy(chanrec);
|
||||||
|
Loading…
Reference in New Issue
Block a user