1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Added "Closed query with nick" message.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1668 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-07-29 01:41:01 +00:00 committed by cras
parent d1d13a4b36
commit 2a44f98a51
3 changed files with 9 additions and 3 deletions

View File

@ -61,9 +61,10 @@ static void signal_query_created(QUERY_REC *query, gpointer 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,
TXT_QUERY_STARTED, query->name);
}
printformat(query->server, query->name, MSGLEVEL_CLIENTNOTICE,
TXT_QUERY_START, query->name);
}
static void signal_query_created_curwin(QUERY_REC *query)
@ -81,6 +82,9 @@ static void signal_query_destroyed(QUERY_REC *query)
window = window_item_window((WI_ITEM_REC *) query);
if (window != NULL) {
printformat(query->server, query->name, MSGLEVEL_CLIENTNOTICE,
TXT_QUERY_STOP, query->name);
window_item_destroy((WI_ITEM_REC *) query);
if (!query->unwanted)

View File

@ -118,6 +118,7 @@ FORMAT_REC fecommon_core_formats[] = {
{ NULL, "Queries", 0 },
{ "query_start", "Starting query with {nick $0}", 1, { 0 } },
{ "query_stop", "Closing query with {nick $0}", 1, { 0 } },
{ "no_query", "No query with {nick $0}", 1, { 0 } },
{ "query_server_changed", "Query with {nick $0} changed to server {server $1}", 2, { 0, 0 } },
{ "query_move_notify", "Query with {nick $0} is already created to window $1, use \"/WINDOW ITEM MOVE $0\" to move it to this window", 2, { 0, 1 } },

View File

@ -91,7 +91,8 @@ enum {
TXT_FILL_5,
TXT_QUERY_STARTED,
TXT_QUERY_START,
TXT_QUERY_STOP,
TXT_NO_QUERY,
TXT_QUERY_SERVER_CHANGED,
TXT_QUERY_MOVE_NOTIFY,