aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/netburst.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-23 07:42:07 +0000
committerGravatar Sadie Powell2023-01-23 13:07:53 +0000
commit5c4badf8ea3ba775854f0d26d3f2e0e119584faa (patch)
tree05dd2c5c545f12f71866be6422146477ddd30e3f /src/modules/m_spanningtree/netburst.cpp
parentVendor the fmtlib library. (diff)
Replace InspIRCd::Format with fmt::format.
Diffstat (limited to 'src/modules/m_spanningtree/netburst.cpp')
-rw-r--r--src/modules/m_spanningtree/netburst.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/modules/m_spanningtree/netburst.cpp b/src/modules/m_spanningtree/netburst.cpp
index da4a60fc6..9e9d66bb7 100644
--- a/src/modules/m_spanningtree/netburst.cpp
+++ b/src/modules/m_spanningtree/netburst.cpp
@@ -24,8 +24,8 @@
#include "inspircd.h"
-#include "xline.h"
#include "listmode.h"
+#include "xline.h"
#include "treesocket.h"
#include "treeserver.h"
@@ -133,10 +133,11 @@ void TreeSocket::SendServerInfo(TreeServer* from)
if (proto_version < PROTO_INSPIRCD_4)
{
- this->WriteLine(CommandSInfo::Builder(from, "version", InspIRCd::Format("%s. %s :%s", from->rawbranch.c_str(),
- from->GetPublicName().c_str(), from->customversion.c_str())));
- this->WriteLine(CommandSInfo::Builder(from, "fullversion", InspIRCd::Format("%s. %s :[%s] %s", from->rawversion.c_str(),
- from->GetName().c_str(), from->GetId().c_str(), from->customversion.c_str())));
+ this->WriteLine(CommandSInfo::Builder(from, "version", INSP_FORMAT("{}. {} :{}", from->rawbranch,
+ from->GetPublicName(), from->customversion)));
+
+ this->WriteLine(CommandSInfo::Builder(from, "fullversion", INSP_FORMAT("{}. {} :[{}] {}", from->rawversion,
+ from->GetName(), from->GetId(), from->customversion)));
}
}