summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-03-10 14:46:40 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-03-10 14:46:40 +0000
commit418678bc95ddf388368978ebddc0776439c788f0 (patch)
tree2b4ba2b487448b440db3033f9b3687124d4637dd /src/fe-common
parent44247af3ffa8356b6422e6f8d24be144807e1bba (diff)
downloadirssi-418678bc95ddf388368978ebddc0776439c788f0.zip
/CYCLE reason didn't work
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2552 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r--src/fe-common/core/fe-channels.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-channels.c b/src/fe-common/core/fe-channels.c
index 64c5214c..bfd8e800 100644
--- a/src/fe-common/core/fe-channels.c
+++ b/src/fe-common/core/fe-channels.c
@@ -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);