diff options
| author | 2025-03-22 14:29:12 +0000 | |
|---|---|---|
| committer | 2025-03-22 14:37:15 +0000 | |
| commit | 30d0f2827215f635f4cdefed8300c1c085ae953c (patch) | |
| tree | 7fc4837accfb8d7bed95449eeb816e84bfa87ea6 /modules/help.cpp | |
| parent | Allow reloading the geolocation database with a module rehash. (diff) | |
| parent | Allow using the long duration format in the xline message. (diff) | |
Merge branch 'insp4' into master.
Diffstat (limited to 'modules/help.cpp')
| -rw-r--r-- | modules/help.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/help.cpp b/modules/help.cpp index ec7673a16..1dead0235 100644 --- a/modules/help.cpp +++ b/modules/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, FMT::format("<{}:key> is empty at {}", tag->name, tag->source.str())); + throw ModuleException(this, "<{}:key> is empty at {}", tag->name, tag->source.str()); else if (irc::equals(key, "index")) - throw ModuleException(this, FMT::format("<{}:key> is set to \"index\" which is reserved at {}", tag->name, tag->source.str())); + throw ModuleException(this, "<{}: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, FMT::format("<{}:value> is empty at {}", tag->name, tag->source.str())); + throw ModuleException(this, "<{}: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. @@ -137,8 +137,8 @@ public: const std::string title = tag->getString("title", FMT::format("*** Help for {}", key), 1); if (!newhelp.emplace(key, HelpTopic(helpmsg, title)).second) { - throw ModuleException(this, FMT::format("<{}> tag with duplicate key '{}' at {}", - tag->name, key, tag->source.str())); + throw ModuleException(this, "<{}> tag with duplicate key '{}' at {}", + tag->name, key, tag->source.str()); } } |
