aboutsummaryrefslogtreecommitdiff
path: root/modules/disable.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2025-03-22 14:29:12 +0000
committerGravatar Sadie Powell2025-03-22 14:37:15 +0000
commit30d0f2827215f635f4cdefed8300c1c085ae953c (patch)
tree7fc4837accfb8d7bed95449eeb816e84bfa87ea6 /modules/disable.cpp
parentAllow reloading the geolocation database with a module rehash. (diff)
parentAllow using the long duration format in the xline message. (diff)
Merge branch 'insp4' into master.
Diffstat (limited to 'modules/disable.cpp')
-rw-r--r--modules/disable.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/disable.cpp b/modules/disable.cpp
index dd064947a..b23b677ba 100644
--- a/modules/disable.cpp
+++ b/modules/disable.cpp
@@ -47,8 +47,8 @@ private:
{
// Check that the character is a valid mode letter.
if (!ModeParser::IsModeChar(chr))
- throw ModuleException(this, FMT::format("Invalid mode '{}' was specified in <disabled:{}> at {}",
- chr, field, tag->source.str()));
+ throw ModuleException(this, "Invalid mode '{}' was specified in <disabled:{}> at {}",
+ chr, field, tag->source.str());
// Check that the mode actually exists.
ModeHandler* mh = ServerInstance->Modes.FindMode(chr, type);
@@ -90,8 +90,8 @@ public:
// Check that the command actually exists.
Command* handler = ServerInstance->Parser.GetHandler(command);
if (!handler)
- throw ModuleException(this, FMT::format("Nonexistent command '{}' was specified in <disabled:commands> at {}",
- command, tag->source.str()));
+ throw ModuleException(this, "Nonexistent command '{}' was specified in <disabled:commands> at {}",
+ command, tag->source.str());
// Prevent admins from disabling MODULES for transparency reasons.
if (handler->name == "MODULES")