aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_sethost.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-06-07 14:12:59 +0100
committerGravatar Sadie Powell2024-06-07 14:12:59 +0100
commitb918f4906a21d6f37de5c7d503c8da1770df966d (patch)
treecb061bf6249cc9a0ce86fcc646a157edd058db76 /src/modules/m_sethost.cpp
parentMerge branch 'insp4' into master. (diff)
Always use fmtlib directly.
Diffstat (limited to 'src/modules/m_sethost.cpp')
-rw-r--r--src/modules/m_sethost.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_sethost.cpp b/src/modules/m_sethost.cpp
index ad8a8dfee..1cd6343bc 100644
--- a/src/modules/m_sethost.cpp
+++ b/src/modules/m_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, INSP_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);