aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_autoop.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_autoop.cpp
parentMerge branch 'insp4' into master. (diff)
Always use fmtlib directly.
Diffstat (limited to 'src/modules/m_autoop.cpp')
-rw-r--r--src/modules/m_autoop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_autoop.cpp b/src/modules/m_autoop.cpp
index 885889ac2..2cf288493 100644
--- a/src/modules/m_autoop.cpp
+++ b/src/modules/m_autoop.cpp
@@ -68,7 +68,7 @@ public:
if (change.adding && !mh)
{
- source->WriteNumeric(ERR_UNKNOWNMODE, mid, INSP_FORMAT("Cannot find prefix mode '{}' for autoop", mid));
+ source->WriteNumeric(ERR_UNKNOWNMODE, mid, fmt::format("Cannot find prefix mode '{}' for autoop", mid));
return MOD_RES_DENY;
}
else if (!mh)
@@ -80,7 +80,7 @@ public:
if (mh->GetLevelRequired(change.adding) > mylevel)
{
- source->WriteNumeric(ERR_CHANOPRIVSNEEDED, channel->name, INSP_FORMAT("You must be able to {} mode {} ({}) to {} an autoop containing it",
+ source->WriteNumeric(ERR_CHANOPRIVSNEEDED, channel->name, fmt::format("You must be able to {} mode {} ({}) to {} an autoop containing it",
change.adding ? "set" : "unset", mh->GetModeChar(), mh->name, change.adding ? "add" : "remove"));
return MOD_RES_DENY;
}