mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
If join to !channel wasn't successfull (banned, etc.), Irssi didn't remove
the channel's window item. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@352 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
09e20e1d78
commit
afb6d6fd02
@ -38,6 +38,14 @@ static void event_cannot_join(const char *data, IRC_SERVER_REC *server)
|
|||||||
channel++; /* server didn't understand !channels */
|
channel++; /* server didn't understand !channels */
|
||||||
|
|
||||||
chanrec = channel_find(server, channel);
|
chanrec = channel_find(server, channel);
|
||||||
|
if (chanrec == NULL && channel[0] == '!') {
|
||||||
|
/* it probably replied with the full !channel name,
|
||||||
|
find the channel with the short name.. */
|
||||||
|
channel = g_strdup_printf("!%s", channel+6);
|
||||||
|
chanrec = channel_find(server, channel);
|
||||||
|
g_free(channel);
|
||||||
|
}
|
||||||
|
|
||||||
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