aboutsummaryrefslogtreecommitdiffstats
path: root/src/socket.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2025-03-01 16:06:32 +0000
committerGravatar Sadie Powell2025-03-01 16:06:32 +0000
commit32a127d2e0c0a624d12cf9570905fec264554550 (patch)
treecdb0a259159753d4479ae36799256d1d807779d0 /src/socket.cpp
parentRelease v4.6.0. (diff)
downloadinspircd++-32a127d2e0c0a624d12cf9570905fec264554550.tar.gz
inspircd++-32a127d2e0c0a624d12cf9570905fec264554550.tar.bz2
inspircd++-32a127d2e0c0a624d12cf9570905fec264554550.zip
Avoid the use of ConvToStr in string concatenation.
This function calls INSP_FORMAT in most cases nowadays so we may as well just call that manually.
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index f8564b9d1..8419e1d6f 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -120,7 +120,7 @@ size_t InspIRCd::BindPorts(FailedPortList& failed_ports)
// Check if the port is out of range.
if (port <= std::numeric_limits<in_port_t>::min() || port > std::numeric_limits<in_port_t>::max())
{
- failed_ports.emplace_back("Port is not valid: " + ConvToStr(port), bindspec, tag);
+ failed_ports.emplace_back(INSP_FORMAT("Port is not valid: {}", port), bindspec, tag);
continue;
}