From f310e1c98dc262249146025ffffb81334b38680d Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 24 Jan 2023 02:58:46 +0000 Subject: Refactor the caching methods in User and rename to make more sense. --- src/modules/m_dnsbl.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/modules/m_dnsbl.cpp') diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp index f30b1e44c..556a5339d 100644 --- a/src/modules/m_dnsbl.cpp +++ b/src/modules/m_dnsbl.cpp @@ -314,7 +314,7 @@ public: { const std::string reason = Template::Replace(config->reason, { { "dnsbl", config->name }, - { "ip", them->GetIPString() }, + { "ip", them->GetAddress() }, { "result", ConvToStr(result) }, }); @@ -344,23 +344,23 @@ public: } case DNSBLEntry::Action::KLINE: { - AddLine("K-line", reason, config->xlineduration, them->GetBanIdent(), them->GetIPString()); + AddLine("K-line", reason, config->xlineduration, them->GetBanIdent(), them->GetAddress()); break; } case DNSBLEntry::Action::GLINE: { - AddLine("G-line", reason, config->xlineduration, them->GetBanIdent(), them->GetIPString()); + AddLine("G-line", reason, config->xlineduration, them->GetBanIdent(), them->GetAddress()); break; } case DNSBLEntry::Action::ZLINE: { - AddLine("Z-line", reason, config->xlineduration, them->GetIPString()); + AddLine("Z-line", reason, config->xlineduration, them->GetAddress()); break; } } ServerInstance->SNO.WriteGlobalSno('d', "Connecting user {} ({}) detected as being on the '{}' DNS blacklist with result {}", - them->GetFullRealHost(), them->GetIPString(), config->name, result); + them->GetRealMask(), them->GetAddress(), config->name, result); } else config->stats_misses++; @@ -394,7 +394,7 @@ public: return; ServerInstance->SNO.WriteGlobalSno('d', "An error occurred whilst checking whether {} ({}) is on the '{}' DNS blacklist: {}", - them->GetFullRealHost(), them->GetIPString(), config->name, data.dns->GetErrorStr(q->error)); + them->GetRealMask(), them->GetAddress(), config->name, data.dns->GetErrorStr(q->error)); } }; @@ -478,7 +478,7 @@ public: else return; - ServerInstance->Logs.Debug(MODNAME, "Reversed IP {} -> {}", user->GetIPString(), reversedip); + ServerInstance->Logs.Debug(MODNAME, "Reversed IP {} -> {}", user->GetAddress(), reversedip); data.countext.Set(user, dnsbls.size()); -- cgit v1.3.1-10-gc9f91