Be less verbose about unredirectable responses.
authorJelmer Vernooij <jelmer@samba.org>
Wed, 16 Apr 2008 09:33:21 +0000 (11:33 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 16 Apr 2008 09:33:21 +0000 (11:33 +0200)
NEWS
src/redirect.c

diff --git a/NEWS b/NEWS
index aae15c4b27cd9222ec655318cde208ffa6732787..6f43d0f39bf1af8f07ef8121c63d0eed504f23fd 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,8 @@ Ctrlproxy 3.0.7 UNRELEASED
 
     * Handle client-specific admin commands being run without a client 
       more gracefully.
+
+    * Be less verbose about unredirectable responses.
   
 
 Ctrlproxy 3.0.6 2008-04-13
index 11a284bb55bf2222d939b635cf3dcc9a0dbadde0..4ca696b8ca1d604a1d702302a8154af86bebdb90 100644 (file)
@@ -635,7 +635,8 @@ gboolean redirect_response(struct irc_network *network, const struct irc_line *l
        }
 
        if (!c) {
-               network_log(LOG_WARNING, network, "Unable to redirect response %s", l->args[0]);
+               network_log((g_list_length(network->clients) == 1)?LOG_TRACE:LOG_WARNING, 
+                                       network, "Unable to redirect response %s", l->args[0]);
                clients_send(network->clients, l, NULL);
        }