1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

/PART in SILC destroys the channel immediately, so we'll need to check

that it's not destroyed when doing it in /CYCLE..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2620 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-03-15 21:32:22 +00:00 committed by cras
parent e1ff1b014a
commit 0687b42b3e

View File

@ -586,11 +586,13 @@ static void cmd_cycle(const char *data, SERVER_REC *server, WI_ITEM_REC *item)
window_bind_add(window_item_window(chanrec),
chanrec->server->tag, chanrec->name);
/* FIXME: kludgy kludgy... and it relies on channel not
being destroyed immediately.. */
/* FIXME: kludgy kludgy... */
signal_emit("command part", 3, data, server, item);
chanrec->left = TRUE;
channel_destroy(chanrec);
if (g_slist_find(channels, chanrec) != NULL) {
chanrec->left = TRUE;
channel_destroy(chanrec);
}
server->channels_join(server, joindata, FALSE);
g_free(joindata);