mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
/wjoin and /wquery commands stopped the "channel created" and
"query created" signals - not good. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@571 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
674d240718
commit
869279f285
@ -37,7 +37,10 @@
|
||||
|
||||
static void signal_channel_created(CHANNEL_REC *channel, gpointer automatic)
|
||||
{
|
||||
window_item_create((WI_ITEM_REC *) channel, GPOINTER_TO_INT(automatic));
|
||||
if (window_item_find(channel->server, channel->name) == NULL) {
|
||||
window_item_create((WI_ITEM_REC *) channel,
|
||||
GPOINTER_TO_INT(automatic));
|
||||
}
|
||||
}
|
||||
|
||||
static void signal_channel_created_curwin(CHANNEL_REC *channel)
|
||||
@ -45,7 +48,6 @@ static void signal_channel_created_curwin(CHANNEL_REC *channel)
|
||||
g_return_if_fail(channel != NULL);
|
||||
|
||||
window_add_item(active_win, (WI_ITEM_REC *) channel, FALSE);
|
||||
signal_stop();
|
||||
}
|
||||
|
||||
static void signal_channel_destroyed(CHANNEL_REC *channel)
|
||||
|
@ -49,8 +49,12 @@ QUERY_REC *privmsg_get_query(IRC_SERVER_REC *server, const char *nick, int own)
|
||||
|
||||
static void signal_query_created(QUERY_REC *query, gpointer automatic)
|
||||
{
|
||||
if (window_item_find(query->server, query->nick) != NULL)
|
||||
return;
|
||||
|
||||
window_item_create((WI_ITEM_REC *) query, GPOINTER_TO_INT(automatic));
|
||||
printformat(query->server, query->nick, MSGLEVEL_CLIENTNOTICE, IRCTXT_QUERY_STARTED, query->nick);
|
||||
printformat(query->server, query->nick, MSGLEVEL_CLIENTNOTICE,
|
||||
IRCTXT_QUERY_STARTED, query->nick);
|
||||
}
|
||||
|
||||
static void signal_query_created_curwin(QUERY_REC *query)
|
||||
@ -58,7 +62,6 @@ static void signal_query_created_curwin(QUERY_REC *query)
|
||||
g_return_if_fail(query != NULL);
|
||||
|
||||
window_add_item(active_win, (WI_ITEM_REC *) query, FALSE);
|
||||
signal_stop();
|
||||
}
|
||||
|
||||
static void signal_query_destroyed(QUERY_REC *query)
|
||||
|
@ -722,7 +722,7 @@ void irc_completion_init(void)
|
||||
signal_add("send text", (SIGNAL_FUNC) event_text);
|
||||
signal_add("server connected", (SIGNAL_FUNC) completion_init_server);
|
||||
signal_add("server disconnected", (SIGNAL_FUNC) completion_deinit_server);
|
||||
signal_add("channel created", (SIGNAL_FUNC) completion_init_channel);
|
||||
signal_add_first("channel created", (SIGNAL_FUNC) completion_init_channel);
|
||||
signal_add_last("channel destroyed", (SIGNAL_FUNC) completion_deinit_channel);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user