aboutsummaryrefslogtreecommitdiff
path: root/src/configreader.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/configreader.cpp
parentMerge branch 'insp4' into master. (diff)
Always use fmtlib directly.
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index 34934f45f..482719969 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -512,11 +512,11 @@ void ServerConfig::Apply(ServerConfig* old, const std::string& useruid)
// On startup, print out to console (still attached at this point)
if (!old)
- fmt::println(line);
+ fmt::println("{}", line);
// If a user is rehashing, tell them directly
if (user)
- user->WriteRemoteNotice(INSP_FORMAT("*** {}", line));
+ user->WriteRemoteNotice(fmt::format("*** {}", line));
// Also tell opers
ServerInstance->SNO.WriteGlobalSno('r', line);
}
@@ -569,7 +569,7 @@ void ServerConfig::ApplyModules(User* user) const
if (ServerInstance->Modules.Unload(mod))
{
- const std::string message = INSP_FORMAT("The {} module was unloaded.", modname);
+ const std::string message = fmt::format("The {} module was unloaded.", modname);
if (user)
user->WriteNumeric(RPL_UNLOADEDMODULE, modname, message);
@@ -577,7 +577,7 @@ void ServerConfig::ApplyModules(User* user) const
}
else
{
- const std::string message = INSP_FORMAT("Failed to unload the {} module: {}", modname, ServerInstance->Modules.LastError());
+ const std::string message = fmt::format("Failed to unload the {} module: {}", modname, ServerInstance->Modules.LastError());
if (user)
user->WriteNumeric(ERR_CANTUNLOADMODULE, modname, message);
@@ -593,7 +593,7 @@ void ServerConfig::ApplyModules(User* user) const
if (ServerInstance->Modules.Load(modname))
{
- const std::string message = INSP_FORMAT("The {} module was loaded.", modname);
+ const std::string message = fmt::format("The {} module was loaded.", modname);
if (user)
user->WriteNumeric(RPL_LOADEDMODULE, modname, message);
@@ -601,7 +601,7 @@ void ServerConfig::ApplyModules(User* user) const
}
else
{
- const std::string message = INSP_FORMAT("Failed to load the {} module: {}", modname, ServerInstance->Modules.LastError());
+ const std::string message = fmt::format("Failed to load the {} module: {}", modname, ServerInstance->Modules.LastError());
if (user)
user->WriteNumeric(ERR_CANTLOADMODULE, modname, message);