From 2863cc79b370954c364f37e4f155697c46292b29 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 29200d4..ba4b670 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -422,6 +422,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