diff options
| author | 2021-12-24 15:41:01 +0000 | |
|---|---|---|
| committer | 2021-12-24 15:41:01 +0000 | |
| commit | 7bd48c531065a0de8af8ea2b4c66972f38352f0e (patch) | |
| tree | d8c0e08a00fbdf23023c034d125d7c13107af6d6 /src/modules/m_dnsbl.cpp | |
| parent | Move RPL_STATS to the stats header. (diff) | |
Convert the dnsbl module to use generic stats instead of RPL_TEXT.
Diffstat (limited to 'src/modules/m_dnsbl.cpp')
| -rw-r--r-- | src/modules/m_dnsbl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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; } }; |
