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_denychans.cpp | |
| parent | Vendor the fmtlib library. (diff) | |
Replace InspIRCd::Format with fmt::format.
Diffstat (limited to 'src/modules/m_denychans.cpp')
| -rw-r--r-- | src/modules/m_denychans.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_denychans.cpp b/src/modules/m_denychans.cpp index 7f64a3289..c1d1b4a54 100644 --- a/src/modules/m_denychans.cpp +++ b/src/modules/m_denychans.cpp @@ -171,14 +171,14 @@ public: if (badchan.redirect.empty() || user->IsModeSet(antiredirectmode) || ((target = ServerInstance->Channels.Find(badchan.redirect)) && target->IsModeSet(redirectmode))) { - user->WriteNumeric(ERR_BADCHANNEL, cname, InspIRCd::Format("Channel %s is forbidden: %s", - cname.c_str(), badchan.reason.c_str())); + user->WriteNumeric(ERR_BADCHANNEL, cname, INSP_FORMAT("Channel {} is forbidden: {}", cname, + badchan.reason)); return MOD_RES_DENY; } // Redirect the user to the target channel. - user->WriteNumeric(ERR_BADCHANNEL, cname, InspIRCd::Format("Channel %s is forbidden, redirecting to %s: %s", - cname.c_str(), badchan.redirect.c_str(), badchan.reason.c_str())); + user->WriteNumeric(ERR_BADCHANNEL, cname, INSP_FORMAT("Channel {} is forbidden, redirecting to {}: {}", + cname, badchan.redirect, badchan.reason)); Channel::JoinUser(user, badchan.redirect); return MOD_RES_DENY; } |
