From 7bd48c531065a0de8af8ea2b4c66972f38352f0e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 24 Dec 2021 15:41:01 +0000 Subject: Convert the dnsbl module to use generic stats instead of RPL_TEXT. --- src/modules/m_dnsbl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/m_dnsbl.cpp') diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp index ac7dccfe5..ec8fafda6 100644 --- a/src/modules/m_dnsbl.cpp +++ b/src/modules/m_dnsbl.cpp @@ -503,13 +503,13 @@ class ModuleDNSBL final total_misses += dnsbl->stats_misses; total_errors += dnsbl->stats_errors; - stats.AddRow(304, InspIRCd::Format("DNSBLSTATS \"%s\" had %lu hits, %lu misses, and %lu errors", + stats.AddGenericRow(InspIRCd::Format("The \"%s\" DNSBL had %lu hits, %lu misses, and %lu errors", dnsbl->name.c_str(), dnsbl->stats_hits, dnsbl->stats_misses, dnsbl->stats_errors)); } - stats.AddRow(304, "DNSBLSTATS Total hits: " + ConvToStr(total_hits)); - stats.AddRow(304, "DNSBLSTATS Total misses: " + ConvToStr(total_misses)); - stats.AddRow(304, "DNSBLSTATS Total errors: " + ConvToStr(total_errors)); + stats.AddGenericRow("Total DNSBL hits: " + ConvToStr(total_hits)); + stats.AddGenericRow("Total DNSBL misses: " + ConvToStr(total_misses)); + stats.AddGenericRow("Total DNSBL errors: " + ConvToStr(total_errors)); return MOD_RES_PASSTHRU; } }; -- cgit v1.3.1-10-gc9f91