aboutsummaryrefslogtreecommitdiffstats
path: root/modules/autoop.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-08-22 10:26:43 +0100
committerGravatar Sadie Powell2024-08-22 11:12:52 +0100
commit6b123d4bc61c2db8e379dd5e681834c4053e661d (patch)
tree77621bb30f54b0c444e31a78b2c5c9a67955b723 /modules/autoop.cpp
parentMerge branch 'insp4' into master. (diff)
Use C++20 <format> instead of fmtlib when available.
Diffstat (limited to 'modules/autoop.cpp')
-rw-r--r--modules/autoop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/autoop.cpp b/modules/autoop.cpp
index 2cf288493..b127b9659 100644
--- a/modules/autoop.cpp
+++ b/modules/autoop.cpp
@@ -68,7 +68,7 @@ public:
if (change.adding && !mh)
{
- source->WriteNumeric(ERR_UNKNOWNMODE, mid, fmt::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, fmt::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;
}