diff options
| author | 2025-03-18 13:12:28 +0000 | |
|---|---|---|
| committer | 2025-03-18 13:12:28 +0000 | |
| commit | 8adda0dca4cb94be6a071e67b3e3c89a22375aca (patch) | |
| tree | e68839d6da2df39b3ba43a8665e44a9a98c6c16c /src/modules/m_sethost.cpp | |
| parent | Skip lines which are empty in mkheaders. (diff) | |
Add a formatting overload of the ModuleException constructor.
Diffstat (limited to 'src/modules/m_sethost.cpp')
| -rw-r--r-- | src/modules/m_sethost.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_sethost.cpp b/src/modules/m_sethost.cpp index ad8a8dfee..be15e2401 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, "<hostname:charmap> can not contain character 0x{:02X} ({})", chr, chr); newhostmap.set(static_cast<unsigned char>(chr)); } std::swap(newhostmap, cmd.hostmap); |
