aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_dnsbl.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-24 02:58:46 +0000
committerGravatar Sadie Powell2023-01-24 02:58:46 +0000
commitf310e1c98dc262249146025ffffb81334b38680d (patch)
treeedd19152137e71db58efc5fbd289f34ce9b6919b /src/modules/m_dnsbl.cpp
parentClean up some remaining old format string stuff. (diff)
Refactor the caching methods in User and rename to make more sense.
Diffstat (limited to 'src/modules/m_dnsbl.cpp')
-rw-r--r--src/modules/m_dnsbl.cpp14
1 files changed, 7 insertions, 7 deletions
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<KLine>("K-line", reason, config->xlineduration, them->GetBanIdent(), them->GetIPString());
+ AddLine<KLine>("K-line", reason, config->xlineduration, them->GetBanIdent(), them->GetAddress());
break;
}
case DNSBLEntry::Action::GLINE:
{
- AddLine<GLine>("G-line", reason, config->xlineduration, them->GetBanIdent(), them->GetIPString());
+ AddLine<GLine>("G-line", reason, config->xlineduration, them->GetBanIdent(), them->GetAddress());
break;
}
case DNSBLEntry::Action::ZLINE:
{
- AddLine<ZLine>("Z-line", reason, config->xlineduration, them->GetIPString());
+ AddLine<ZLine>("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());