diff options
| author | 2024-06-07 14:12:59 +0100 | |
|---|---|---|
| committer | 2024-06-07 14:12:59 +0100 | |
| commit | b918f4906a21d6f37de5c7d503c8da1770df966d (patch) | |
| tree | cb061bf6249cc9a0ce86fcc646a157edd058db76 /src/modules/m_help.cpp | |
| parent | Merge branch 'insp4' into master. (diff) | |
Always use fmtlib directly.
Diffstat (limited to 'src/modules/m_help.cpp')
| -rw-r--r-- | src/modules/m_help.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_help.cpp b/src/modules/m_help.cpp index dda487c5c..99662e399 100644 --- a/src/modules/m_help.cpp +++ b/src/modules/m_help.cpp @@ -115,16 +115,16 @@ public: // Attempt to read the help key. const std::string key = tag->getString("key"); if (key.empty()) - throw ModuleException(this, INSP_FORMAT("<{}:key> is empty at {}", tag->name, tag->source.str())); + throw ModuleException(this, fmt::format("<{}:key> is empty at {}", tag->name, tag->source.str())); else if (irc::equals(key, "index")) - throw ModuleException(this, INSP_FORMAT("<{}:key> is set to \"index\" which is reserved at {}", tag->name, tag->source.str())); + throw ModuleException(this, fmt::format("<{}:key> is set to \"index\" which is reserved at {}", tag->name, 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, INSP_FORMAT("<{}:value> is empty at {}", tag->name, tag->source.str())); + throw ModuleException(this, fmt::format("<{}:value> is empty at {}", tag->name, tag->source.str())); // Parse the help body. Empty lines are replaced with a single // space because some clients are unable to show blank lines. @@ -134,10 +134,10 @@ public: helpmsg.push_back(line.empty() ? " " : line); // Read the help title and store the topic. - const std::string title = tag->getString("title", INSP_FORMAT("*** Help for {}", key), 1); + const std::string title = tag->getString("title", fmt::format("*** Help for {}", key), 1); if (!newhelp.emplace(key, HelpTopic(helpmsg, title)).second) { - throw ModuleException(this, INSP_FORMAT("<{}> tag with duplicate key '{}' at {}", + throw ModuleException(this, fmt::format("<{}> tag with duplicate key '{}' at {}", tag->name, key, tag->source.str())); } } |
