summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-03-03 19:56:11 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-03-03 19:56:11 +0000
commit25a013e4c86d67b797fabc3c97a1792a35bb2b7e (patch)
treecb635df0a935bf7cf9435855ca5041c18b42bb56
parent887c535ada0e6c5d29e89211466ca6b7b6a5a50c (diff)
downloadirssi-25a013e4c86d67b797fabc3c97a1792a35bb2b7e.zip
"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
-rw-r--r--src/fe-common/core/fe-channels.c6
-rw-r--r--src/fe-common/core/fe-queries.c3
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);