From 3f3c2583beae75ad47e782596788bc60ce8097bb Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 25 Jul 2023 09:48:50 +0100 Subject: 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. --- src/configreader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/configreader.cpp') 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("maxtargets", 5, 1, 50); - XLineQuitPublic = security->getString("publicxlinequit", security->getBool("hidebans") ? "%type%-lined" : ""); + XLineQuitPublic = security->getString("publicxlinequit", security->getBool("hidebans") ? "%fulltype%" : ""); // Read the config. const auto& cidr = ConfValue("cidr"); -- cgit v1.3.1-10-gc9f91