]> jfr.im git - solanum.git/commitdiff
Combine stats A output parameters (#35)
authorEric Mertens <redacted>
Tue, 27 Oct 2020 23:39:38 +0000 (16:39 -0700)
committerGitHub <redacted>
Tue, 27 Oct 2020 23:39:38 +0000 (16:39 -0700)
Every other use of RPL_STATSDEBUG follows the format: <letter> :<text>

This case appeared to slip through because it's two-word argument is encoded
in a single `->data` buffer.

modules/m_stats.c

index 8269094817952d622e6a48242e1f6108dfbaf4e0..945ae2345cde3403a62dac57715014a143a07be9 100644 (file)
@@ -288,7 +288,7 @@ stats_dns_servers (struct Client *source_p)
 
        RB_DLINK_FOREACH(n, nameservers.head)
        {
-               sendto_one_numeric(source_p, RPL_STATSDEBUG, "A %s", (char *)n->data);
+               sendto_one_numeric(source_p, RPL_STATSDEBUG, "A :%s", (char *)n->data);
        }
 }