diff options
| author | 2025-03-01 16:24:05 +0000 | |
|---|---|---|
| committer | 2025-03-01 16:26:53 +0000 | |
| commit | a27defd72f82627993a059683c8399beb477a800 (patch) | |
| tree | a926b5cab8249832c7d147c508f7f098cc763ff7 /src/configreader.cpp | |
| parent | Replace insp::substring_view with the C++20 iterator constructor. (diff) | |
| parent | Avoid the use of ConvToStr in string concatenation. (diff) | |
Merge branch 'insp4' into master.
Diffstat (limited to 'src/configreader.cpp')
| -rw-r--r-- | src/configreader.cpp | 4 |
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!"); |
