aboutsummaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index 0fc7900a4..ac6cd7953 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -281,7 +281,7 @@ void ServerConfig::CrossCheckConnectBlocks(ServerConfig* current)
throw CoreException("Connect class must have allow, deny, or name specified at " + tag->source.str());
if (name.empty())
- name = "unnamed-" + ConvToStr(i);
+ name = INSP_FORMAT("unnamed-{}", i);
if (names.find(name) != names.end())
throw CoreException("Two connect classes with name \"" + name + "\" defined!");