aboutsummaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-03-26 22:39:42 +0100
committerGravatar Sadie Powell2023-04-18 14:21:11 +0100
commitf8614ea98581fb303abc36c792be6ba60b3c8b42 (patch)
tree4c2840b444072bb6dd11debdc50077d0e854fc3d /src/configreader.cpp
parentMarginally improve the performance of JSON logging. (diff)
Allow customising the message shown when hiding an X-line ban.
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index d500a0fbd..4803fdb7d 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -340,7 +340,7 @@ void ServerConfig::Fill()
// Read the <security> config.
const auto& security = ConfValue("security");
CustomVersion = security->getString("customversion");
- HideBans = security->getBool("hidebans");
+ HideLines = security->getString("hidelines", security->getBool("hidebans") ? "%type%-lined" : "");
HideServer = security->getString("hideserver", {}, InspIRCd::IsFQDN);
MaxTargets = security->getNum<unsigned long>("maxtargets", 5, 1, 50);