aboutsummaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-07-25 09:48:50 +0100
committerGravatar Sadie Powell2023-07-25 09:48:50 +0100
commit3f3c2583beae75ad47e782596788bc60ce8097bb (patch)
tree011c856a2a89948db5d7a146c720414c3462a489 /src/configreader.cpp
parentAdd the %created% and %fulltype% variables for the X-line reason. (diff)
Also allow suffixing with -line[d] if an X-line is two characters.
This makes things easier for modules like require_auth in contrib which has a GA-line.
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index 7901a6826..9f6c80f67 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -365,7 +365,7 @@ void ServerConfig::Fill()
NoSnoticeStack = options->getBool("nosnoticestack");
SyntaxHints = options->getBool("syntaxhints");
XLineMessage = options->getString("xlinemessage", "You're banned!", 1);
- XLineQuit = options->getString("xlinequit", "%type%-lined: %reason%", 1);
+ XLineQuit = options->getString("xlinequit", "%fulltype%: %reason%", 1);
RestrictBannedUsers = options->getEnum("restrictbannedusers", ServerConfig::BUT_RESTRICT_NOTIFY, {
{ "no", ServerConfig::BUT_NORMAL },
{ "silent", ServerConfig::BUT_RESTRICT_SILENT },
@@ -389,7 +389,7 @@ void ServerConfig::Fill()
CustomVersion = security->getString("customversion");
HideServer = security->getString("hideserver", {}, InspIRCd::IsFQDN);
MaxTargets = security->getNum<size_t>("maxtargets", 5, 1, 50);
- XLineQuitPublic = security->getString("publicxlinequit", security->getBool("hidebans") ? "%type%-lined" : "");
+ XLineQuitPublic = security->getString("publicxlinequit", security->getBool("hidebans") ? "%fulltype%" : "");
// Read the <cidr> config.
const auto& cidr = ConfValue("cidr");