From be4ed154479e5a8f1382ca1c67f08adababa699d Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 24 Nov 2008 17:58:07 +0100 Subject: [PATCH] Command bytarget returns name of target (if defined). --- src/http_command.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/http_command.c b/src/http_command.c index 426b357..b9945ba 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -423,6 +423,13 @@ static void cmd_bytarget(struct http_channel *c) wrbuf_xmlputs(c->wrbuf, ht[i].id); wrbuf_puts(c->wrbuf, "\n"); + if (ht[i].name && ht[i].name[0]) + { + wrbuf_puts(c->wrbuf, ""); + wrbuf_xmlputs(c->wrbuf, ht[i].name); + wrbuf_puts(c->wrbuf, "\n"); + } + wrbuf_printf(c->wrbuf, "%d\n", ht[i].hits); wrbuf_printf(c->wrbuf, "%d\n", ht[i].diagnostic); wrbuf_printf(c->wrbuf, "%d\n", ht[i].records); -- 1.7.10.4