mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
"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
This commit is contained in:
parent
887c535ada
commit
25a013e4c8
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user