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_helpop.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/modules/m_helpop.cpp') diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp index 861347fa3..5fe3026ca 100644 --- a/src/modules/m_helpop.cpp +++ b/src/modules/m_helpop.cpp @@ -121,16 +121,16 @@ public: // Attempt to read the help key. const std::string key = tag->getString("key"); if (key.empty()) - throw ModuleException(this, InspIRCd::Format(" is empty at %s", tag->source.str().c_str())); + throw ModuleException(this, INSP_FORMAT(" is empty at {}", tag->source.str())); else if (irc::equals(key, "index")) - throw ModuleException(this, InspIRCd::Format(" is set to \"index\" which is reserved at %s", tag->source.str().c_str())); + throw ModuleException(this, INSP_FORMAT(" is set to \"index\" which is reserved at {}", tag->source.str())); else if (key.length() > longestkey) longestkey = key.length(); // Attempt to read the help value. std::string value; if (!tag->readString("value", value, true) || value.empty()) - throw ModuleException(this, InspIRCd::Format(" is empty at %s", tag->source.str().c_str())); + throw ModuleException(this, INSP_FORMAT(" is empty at {}", tag->source.str())); // Parse the help body. Empty lines are replaced with a single // space because some clients are unable to show blank lines. @@ -140,11 +140,11 @@ public: helpmsg.push_back(line.empty() ? " " : line); // Read the help title and store the topic. - const std::string title = tag->getString("title", InspIRCd::Format("*** Help for %s", key.c_str()), 1); + const std::string title = tag->getString("title", INSP_FORMAT("*** Help for {}", key), 1); if (!newhelp.emplace(key, HelpTopic(helpmsg, title)).second) { - throw ModuleException(this, InspIRCd::Format(" tag with duplicate key '%s' at %s", - key.c_str(), tag->source.str().c_str())); + throw ModuleException(this, INSP_FORMAT(" tag with duplicate key '{}' at {}", + key, tag->source.str())); } } -- cgit v1.3.1-10-gc9f91