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

/CYCLE reason didn't work

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2552 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-03-10 14:46:40 +00:00 committed by cras
parent 44247af3ff
commit 418678bc95

View File

@ -585,7 +585,11 @@ static void cmd_cycle(const char *data, SERVER_REC *server, WI_ITEM_REC *item)
joindata = chanrec->get_join_data(chanrec);
window_bind_add(window_item_window(chanrec),
chanrec->server->tag, chanrec->name);
channel_destroy(chanrec);
/* FIXME: kludgy kludgy... and it relies on channel not
being destroyed immediately.. */
signal_emit("command part", 3, data, server, item);
channel_destroy(chanrec);
server->channels_join(server, joindata, FALSE);
g_free(joindata);