aboutsummaryrefslogtreecommitdiffstats
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-14 02:15:38 +0000
committerGravatar Sadie Powell2026-03-14 03:09:11 +0000
commit76f3f24c03c22576324e5af199d3e61d02a79b0d (patch)
treeefa6b9a0295e7b99dc8c0c47c8dd6030238c8cac /src/configreader.cpp
parentConvert some methods to use string_view. (diff)
Rewrite sepstream and move to stringutils.
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index b617cdc0a..9c99e7225 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -35,6 +35,7 @@
#include "inspircd.h"
#include "configparser.h"
+#include "stringutils.h"
#include "utility/string.h"
ServerConfig::ReadResult::ReadResult(const std::string& c, const std::string& e)
@@ -163,7 +164,7 @@ void ServerConfig::CrossCheckOperBlocks()
auto type = std::make_shared<OperType>(name, nullptr);
// Copy the settings from the oper class.
- irc::spacesepstream classlist(tag->getString("classes"));
+ StringSplitter classlist(tag->getString("classes"));
for (std::string classname; classlist.GetToken(classname); )
{
auto klass = operclass.find(classname);
@@ -291,7 +292,7 @@ void ServerConfig::CrossCheckConnectBlocks(const std::unique_ptr<ServerConfig>&
names[name] = i;
std::vector<std::string> masks;
- irc::spacesepstream maskstream(mask);
+ StringSplitter maskstream(mask);
for (std::string maskentry; maskstream.GetToken(maskentry); )
masks.push_back(maskentry);