aboutsummaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2025-03-01 16:24:05 +0000
committerGravatar Sadie Powell2025-03-01 16:26:53 +0000
commita27defd72f82627993a059683c8399beb477a800 (patch)
treea926b5cab8249832c7d147c508f7f098cc763ff7 /src/configreader.cpp
parentReplace insp::substring_view with the C++20 iterator constructor. (diff)
parentAvoid the use of ConvToStr in string concatenation. (diff)
Merge branch 'insp4' into master.
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index 07c93d09c..6d4ba373a 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -2,7 +2,7 @@
* InspIRCd -- Internet Relay Chat Daemon
*
* Copyright (C) 2013-2016 Attila Molnar <attilamolnar@hush.com>
- * Copyright (C) 2013-2014, 2016-2024 Sadie Powell <sadie@witchery.services>
+ * Copyright (C) 2013-2014, 2016-2025 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2012 Robby <robby@chatbelgie.be>
* Copyright (C) 2012 ChrisTX <xpipe@hotmail.de>
* Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org>
@@ -283,7 +283,7 @@ void ServerConfig::CrossCheckConnectBlocks(const std::unique_ptr<ServerConfig>&
throw CoreException("Connect class must have allow, deny, or name specified at " + tag->source.str());
if (name.empty())
- name = "unnamed-" + ConvToStr(i);
+ name = FMT::format("unnamed-{}", i);
if (names.find(name) != names.end())
throw CoreException("Two connect classes with name \"" + name + "\" defined!");