diff options
| author | 2023-01-23 07:42:07 +0000 | |
|---|---|---|
| committer | 2023-01-23 13:07:53 +0000 | |
| commit | 5c4badf8ea3ba775854f0d26d3f2e0e119584faa (patch) | |
| tree | 05dd2c5c545f12f71866be6422146477ddd30e3f /src/modules/m_codepage.cpp | |
| parent | Vendor the fmtlib library. (diff) | |
Replace InspIRCd::Format with fmt::format.
Diffstat (limited to 'src/modules/m_codepage.cpp')
| -rw-r--r-- | src/modules/m_codepage.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/modules/m_codepage.cpp b/src/modules/m_codepage.cpp index 83ae5a79d..245e86849 100644 --- a/src/modules/m_codepage.cpp +++ b/src/modules/m_codepage.cpp @@ -154,8 +154,7 @@ public: data["map"].push_back(','); } - compatdata = InspIRCd::Format("front=%s&middle=%s&map=%s", data["front"].c_str(), - data["middle"].c_str(), data["map"].c_str()); + compatdata = INSP_FORMAT("front={}&middle={}&map={}", data["front"], data["middle"], data["map"]); } bool Map(unsigned long upper, unsigned long lower) override @@ -285,12 +284,12 @@ public: break; case Codepage::AllowCharacterResult::NOT_VALID: - throw ModuleException(this, InspIRCd::Format("<cpchars> tag contains a forbidden character: %lu at %s", - pos, tag->source.str().c_str())); + throw ModuleException(this, INSP_FORMAT("<cpchars> tag contains a forbidden character: {} at {}", + pos, tag->source.str())); case Codepage::AllowCharacterResult::NOT_VALID_AT_FRONT: - throw ModuleException(this, InspIRCd::Format("<cpchars> tag contains a forbidden front character: %lu at %s", - pos, tag->source.str().c_str())); + throw ModuleException(this, INSP_FORMAT("<cpchars> tag contains a forbidden front character: {} at {}", + pos, tag->source.str())); } } } |
