aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sethost.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-08-22 10:26:43 +0100
committerGravatar Sadie Powell2024-08-22 11:12:52 +0100
commit6b123d4bc61c2db8e379dd5e681834c4053e661d (patch)
tree77621bb30f54b0c444e31a78b2c5c9a67955b723 /modules/sethost.cpp
parentMerge branch 'insp4' into master. (diff)
Use C++20 <format> instead of fmtlib when available.
Diffstat (limited to 'modules/sethost.cpp')
-rw-r--r--modules/sethost.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sethost.cpp b/modules/sethost.cpp
index 18009327a..4682a04f9 100644
--- a/modules/sethost.cpp
+++ b/modules/sethost.cpp
@@ -83,7 +83,7 @@ public:
{
// A hostname can not contain NUL, LF, CR, or SPACE.
if (chr == 0x00 || chr == 0x0A || chr == 0x0D || chr == 0x20)
- throw ModuleException(this, fmt::format("<hostname:charmap> can not contain character 0x{:02X} ({})", chr, chr));
+ throw ModuleException(this, FMT::format("<hostname:charmap> can not contain character 0x{:02X} ({})", chr, chr));
newhostmap.set(static_cast<unsigned char>(chr));
}
std::swap(newhostmap, cmd.hostmap);