From 25a013e4c86d67b797fabc3c97a1792a35bb2b7e Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 3 Mar 2001 19:56:11 +0000 Subject: [PATCH] "channel created", "query created" .. don't abort adding window item even if there already exists another with same name. not sure if this breaks something but at least doing that breaks some things, like /join #a and /query #a after that :) }CVS: ---------------------------------------------------------------------- git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1317 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/fe-channels.c | 6 ++---- src/fe-common/core/fe-queries.c | 3 --- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/fe-common/core/fe-channels.c b/src/fe-common/core/fe-channels.c index 9bc18e34..f4de4846 100644 --- a/src/fe-common/core/fe-channels.c +++ b/src/fe-common/core/fe-channels.c @@ -39,10 +39,8 @@ static void signal_channel_created(CHANNEL_REC *channel, void *automatic) { - if (window_item_find(channel->server, channel->name) == NULL) { - window_item_create((WI_ITEM_REC *) channel, - GPOINTER_TO_INT(automatic)); - } + window_item_create((WI_ITEM_REC *) channel, + GPOINTER_TO_INT(automatic)); } static void signal_channel_created_curwin(CHANNEL_REC *channel) diff --git a/src/fe-common/core/fe-queries.c b/src/fe-common/core/fe-queries.c index ce614c89..ce11dd31 100644 --- a/src/fe-common/core/fe-queries.c +++ b/src/fe-common/core/fe-queries.c @@ -58,9 +58,6 @@ static void signal_query_created(QUERY_REC *query, gpointer automatic) { g_return_if_fail(IS_QUERY(query)); - if (window_item_find(query->server, query->name) != NULL) - return; - window_item_create((WI_ITEM_REC *) query, GPOINTER_TO_INT(automatic)); printformat(query->server, query->name, MSGLEVEL_CLIENTNOTICE, TXT_QUERY_STARTED, query->name);