aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_dnsbl.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-04-05 23:13:56 +0100
committerGravatar Sadie Powell2022-04-05 23:21:47 +0100
commit070d41431084409a85660b7ef0b171840cae69ef (patch)
treeb9ffa22f8e1133d0c78b53a6395be381406a8e63 /src/modules/m_dnsbl.cpp
parentNotify opers about the connectban zline being added before applying it. (diff)
Use consistent xline messages locally
For connectban these messages would have previously been duplicated to other servers until this was fixed earlier today. For dnsbl and rline they would have just differed on the local to a remote. As of the previous commit the module name is included in the setter so there is no need to vary the snotice. This makes things more consistent for server operators and allows scripts to parse the messages.
Diffstat (limited to 'src/modules/m_dnsbl.cpp')
-rw-r--r--src/modules/m_dnsbl.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp
index 35b750e97..8777b6f24 100644
--- a/src/modules/m_dnsbl.cpp
+++ b/src/modules/m_dnsbl.cpp
@@ -185,9 +185,9 @@ class DNSBLResolver : public DNS::Request
them->GetBanIdent(), them->GetIPString());
if (ServerInstance->XLines->AddLine(kl,NULL))
{
- ServerInstance->SNO->WriteToSnoMask('x', "K-line added due to DNSBL match on %s to expire in %s (on %s): %s",
- kl->Displayable().c_str(), InspIRCd::DurationString(kl->duration).c_str(),
- InspIRCd::TimeString(kl->expiry).c_str(), reason.c_str());
+ ServerInstance->SNO->WriteToSnoMask('x', "%s added a timed K-line on %s, expires in %s (on %s): %s",
+ kl->source.c_str(), kl->Displayable().c_str(), InspIRCd::DurationString(kl->duration).c_str(),
+ InspIRCd::TimeString(kl->expiry).c_str(), kl->reason.c_str());
ServerInstance->XLines->ApplyLines();
}
else
@@ -203,9 +203,9 @@ class DNSBLResolver : public DNS::Request
them->GetBanIdent(), them->GetIPString());
if (ServerInstance->XLines->AddLine(gl,NULL))
{
- ServerInstance->SNO->WriteToSnoMask('x', "G-line added due to DNSBL match on %s to expire in %s (on %s): %s",
- gl->Displayable().c_str(), InspIRCd::DurationString(gl->duration).c_str(),
- InspIRCd::TimeString(gl->expiry).c_str(), reason.c_str());
+ ServerInstance->SNO->WriteToSnoMask('x', "%s added a timed G-line on %s, expires in %s (on %s): %s",
+ gl->source.c_str(), gl->Displayable().c_str(), InspIRCd::DurationString(gl->duration).c_str(),
+ InspIRCd::TimeString(gl->expiry).c_str(), gl->reason.c_str());
ServerInstance->XLines->ApplyLines();
}
else
@@ -221,9 +221,9 @@ class DNSBLResolver : public DNS::Request
them->GetIPString());
if (ServerInstance->XLines->AddLine(zl,NULL))
{
- ServerInstance->SNO->WriteToSnoMask('x', "Z-line added due to DNSBL match on %s to expire in %s (on %s): %s",
- them->GetIPString().c_str(), InspIRCd::DurationString(zl->duration).c_str(),
- InspIRCd::TimeString(zl->expiry).c_str(), reason.c_str());
+ ServerInstance->SNO->WriteToSnoMask('x', "%s added a timed Z-line on %s, expires in %s (on %s): %s",
+ zl->source.c_str(), zl->Displayable().c_str(), InspIRCd::DurationString(zl->duration).c_str(),
+ InspIRCd::TimeString(zl->expiry).c_str(), zl->reason.c_str());
ServerInstance->XLines->ApplyLines();
}
else