mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
I knew removing those checks from "channel created" and "query created"
signals broke something :) -window option to /JOIN and /QUERY. This time don't check for any item with same server/name, but check that the item itself doesn't have window set yet. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1326 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
f71afe835a
commit
ab5166033c
@ -39,8 +39,10 @@
|
|||||||
|
|
||||||
static void signal_channel_created(CHANNEL_REC *channel, void *automatic)
|
static void signal_channel_created(CHANNEL_REC *channel, void *automatic)
|
||||||
{
|
{
|
||||||
|
if (window_item_window(channel) == NULL) {
|
||||||
window_item_create((WI_ITEM_REC *) channel,
|
window_item_create((WI_ITEM_REC *) channel,
|
||||||
GPOINTER_TO_INT(automatic));
|
GPOINTER_TO_INT(automatic));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void signal_channel_created_curwin(CHANNEL_REC *channel)
|
static void signal_channel_created_curwin(CHANNEL_REC *channel)
|
||||||
|
@ -58,9 +58,12 @@ static void signal_query_created(QUERY_REC *query, gpointer automatic)
|
|||||||
{
|
{
|
||||||
g_return_if_fail(IS_QUERY(query));
|
g_return_if_fail(IS_QUERY(query));
|
||||||
|
|
||||||
window_item_create((WI_ITEM_REC *) query, GPOINTER_TO_INT(automatic));
|
if (window_item_window(query) == NULL) {
|
||||||
|
window_item_create((WI_ITEM_REC *) query,
|
||||||
|
GPOINTER_TO_INT(automatic));
|
||||||
printformat(query->server, query->name, MSGLEVEL_CLIENTNOTICE,
|
printformat(query->server, query->name, MSGLEVEL_CLIENTNOTICE,
|
||||||
TXT_QUERY_STARTED, query->name);
|
TXT_QUERY_STARTED, query->name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void signal_query_created_curwin(QUERY_REC *query)
|
static void signal_query_created_curwin(QUERY_REC *query)
|
||||||
|
Loading…
Reference in New Issue
Block a user