aboutsummaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-12 15:29:39 +0000
committerGravatar Sadie Powell2026-03-12 15:39:40 +0000
commitbdeb21e98517638d43e5404f3d1e56a490176f1e (patch)
tree7c37abebd7ca61849131b9abd3e31a9b61900138 /src/configreader.cpp
parentMove <options:modesinlist> to <channels>. (diff)
Move <options:maskinlist> and <options:maskintopic> to <channels>.
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index 8681272cb..b617cdc0a 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -377,8 +377,6 @@ void ServerConfig::Fill()
// Read the <options> config.
const auto& options = ConfValue("options");
CustomVersion = options->getString("customversion", security->getString("customversion"));
- MaskInList = options->getBool("maskinlist");
- MaskInTopic = options->getBool("maskintopic");
NoSnoticeStack = options->getBool("nosnoticestack");
SyntaxHints = options->getBool("syntaxhints");
XLineMessage = options->getString("xlinemessage", "You're banned!", 1);
@@ -394,6 +392,11 @@ void ServerConfig::Fill()
{ "ipv6", true },
});
+ // Read the <channels> config.
+ const auto& channels = ConfValue("channels", options);
+ MaskInList = channels->getBool("maskinlist");
+ MaskInTopic = channels->getBool("maskintopic");
+
// Read the <performance> config.
const auto& performance = ConfValue("performance");
MaxConn = performance->getNum<int>("somaxconn", SOMAXCONN, 1);