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_codepage.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/modules/m_codepage.cpp') diff --git a/src/modules/m_codepage.cpp b/src/modules/m_codepage.cpp index 83ae5a79d..245e86849 100644 --- a/src/modules/m_codepage.cpp +++ b/src/modules/m_codepage.cpp @@ -154,8 +154,7 @@ public: data["map"].push_back(','); } - compatdata = InspIRCd::Format("front=%s&middle=%s&map=%s", data["front"].c_str(), - data["middle"].c_str(), data["map"].c_str()); + compatdata = INSP_FORMAT("front={}&middle={}&map={}", data["front"], data["middle"], data["map"]); } bool Map(unsigned long upper, unsigned long lower) override @@ -285,12 +284,12 @@ public: break; case Codepage::AllowCharacterResult::NOT_VALID: - throw ModuleException(this, InspIRCd::Format(" tag contains a forbidden character: %lu at %s", - pos, tag->source.str().c_str())); + throw ModuleException(this, INSP_FORMAT(" tag contains a forbidden character: {} at {}", + pos, tag->source.str())); case Codepage::AllowCharacterResult::NOT_VALID_AT_FRONT: - throw ModuleException(this, InspIRCd::Format(" tag contains a forbidden front character: %lu at %s", - pos, tag->source.str().c_str())); + throw ModuleException(this, INSP_FORMAT(" tag contains a forbidden front character: {} at {}", + pos, tag->source.str())); } } } -- cgit v1.3.1-10-gc9f91