From b8e1bb044459590531b98daf50682e33914636c3 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 11 Jun 2000 21:01:30 +0000 Subject: [PATCH] Print "starting query with " when query is created. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@325 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/irc/fe-query.c | 1 + src/fe-common/irc/module-formats.c | 1 + src/fe-common/irc/module-formats.h | 1 + 3 files changed, 3 insertions(+) diff --git a/src/fe-common/irc/fe-query.c b/src/fe-common/irc/fe-query.c index 5444a031..69b6a683 100644 --- a/src/fe-common/irc/fe-query.c +++ b/src/fe-common/irc/fe-query.c @@ -37,6 +37,7 @@ static int queryclose_tag, query_auto_close; static void signal_query_created(QUERY_REC *query, gpointer automatic) { window_item_create((WI_ITEM_REC *) query, GPOINTER_TO_INT(automatic)); + printformat(query->server, query->nick, MSGLEVEL_CLIENTNOTICE, IRCTXT_QUERY_STARTED, query->nick); } static void signal_query_created_curwin(QUERY_REC *query) diff --git a/src/fe-common/irc/module-formats.c b/src/fe-common/irc/module-formats.c index 447ce8fe..28e12633 100644 --- a/src/fe-common/irc/module-formats.c +++ b/src/fe-common/irc/module-formats.c @@ -197,6 +197,7 @@ FORMAT_REC fecommon_irc_formats[] = { { "ignore_line", "$[-4]0 $1: $2 $3 $4", 5, { 1, 0, 0, 0, 0 } }, { "ignore_footer", "", 0 }, { "talking_in", "You are now talking in %_$0%_", 1, { 0 } }, + { "query_start", "Starting query with %_$0%_", 1, { 0 } }, { "no_query", "No query with %_$0%_", 1, { 0 } }, { "no_msgs_got", "You have not received a message from anyone yet", 0 }, { "no_msgs_sent", "You have not sent a message to anyone yet", 0 }, diff --git a/src/fe-common/irc/module-formats.h b/src/fe-common/irc/module-formats.h index 1450b7cf..daf84a02 100644 --- a/src/fe-common/irc/module-formats.h +++ b/src/fe-common/irc/module-formats.h @@ -167,6 +167,7 @@ enum { IRCTXT_IGNORE_LINE, IRCTXT_IGNORE_FOOTER, IRCTXT_TALKING_IN, + IRCTXT_QUERY_STARTED, IRCTXT_NO_QUERY, IRCTXT_NO_MSGS_GOT, IRCTXT_NO_MSGS_SENT