From 5c4badf8ea3ba775854f0d26d3f2e0e119584faa Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 23 Jan 2023 07:42:07 +0000 Subject: Replace InspIRCd::Format with fmt::format. --- src/modules/m_spanningtree/netburst.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/modules/m_spanningtree/netburst.cpp') 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))); } } -- cgit v1.3.1-10-gc9f91