aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_cban.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-23 07:42:07 +0000
committerGravatar Sadie Powell2023-01-23 13:07:53 +0000
commit5c4badf8ea3ba775854f0d26d3f2e0e119584faa (patch)
tree05dd2c5c545f12f71866be6422146477ddd30e3f /src/modules/m_cban.cpp
parentVendor the fmtlib library. (diff)
Replace InspIRCd::Format with fmt::format.
Diffstat (limited to 'src/modules/m_cban.cpp')
-rw-r--r--src/modules/m_cban.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp
index c797a13ce..74f884760 100644
--- a/src/modules/m_cban.cpp
+++ b/src/modules/m_cban.cpp
@@ -202,7 +202,7 @@ public:
if (rl)
{
// Channel is banned.
- user->WriteNumeric(ERR_BADCHANNEL, cname, InspIRCd::Format("Channel %s is CBANed: %s", cname.c_str(), rl->reason.c_str()));
+ user->WriteNumeric(ERR_BADCHANNEL, cname, INSP_FORMAT("Channel {} is CBANed: {}", cname, rl->reason));
ServerInstance->SNO.WriteGlobalSno('a', "%s tried to join %s which is CBANed (%s)",
user->nick.c_str(), cname.c_str(), rl->reason.c_str());
return MOD_RES_DENY;