From e6d342d89ff25747da9fd45e7f04a861ee4d2e54 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 21 Jul 2023 18:12:46 +0100 Subject: Make the X-line quit message format a lot more flexible. --- src/configreader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index 3a0b70534..7901a6826 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -365,6 +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); RestrictBannedUsers = options->getEnum("restrictbannedusers", ServerConfig::BUT_RESTRICT_NOTIFY, { { "no", ServerConfig::BUT_NORMAL }, { "silent", ServerConfig::BUT_RESTRICT_SILENT }, @@ -386,9 +387,9 @@ void ServerConfig::Fill() // Read the config. const auto& security = ConfValue("security"); CustomVersion = security->getString("customversion"); - HideLines = security->getString("hidelines", security->getBool("hidebans") ? "%type%-lined" : ""); HideServer = security->getString("hideserver", {}, InspIRCd::IsFQDN); MaxTargets = security->getNum("maxtargets", 5, 1, 50); + XLineQuitPublic = security->getString("publicxlinequit", security->getBool("hidebans") ? "%type%-lined" : ""); // Read the config. const auto& cidr = ConfValue("cidr"); -- cgit v1.3.1-10-gc9f91