From 9db9d5abe4abd975cd8725283f2efcd4bcae5f8e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 23 Jan 2023 11:09:17 +0000 Subject: Convert WriteToSnoMask/WriteGlobalSno to use fmtlib format strings. --- src/modules/m_account.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/m_account.cpp') diff --git a/src/modules/m_account.cpp b/src/modules/m_account.cpp index a9850ba51..12e6eae8a 100644 --- a/src/modules/m_account.cpp +++ b/src/modules/m_account.cpp @@ -318,8 +318,8 @@ public: if (!automatic) { - ServerInstance->SNO.WriteGlobalSno('o', "%s (%s) [%s] failed to log into the \x02%s\x02 oper account because they are not logged into the correct user account.", - user->nick.c_str(), user->MakeHost().c_str(), user->GetIPString().c_str(), oper->GetName().c_str()); + ServerInstance->SNO.WriteGlobalSno('o', "{} ({}) [{}] failed to log into the \x02{}\x02 oper account because they are not logged into the correct user account.", + user->nick, user->MakeHost(), user->GetIPString(), oper->GetName()); } return MOD_RES_DENY; // Account required but it does not match. } @@ -340,8 +340,8 @@ public: if (error) { - ServerInstance->Logs.Debug("CONNECTCLASS", "The %s connect class is not suitable as it requires the user to be logged into %s.", - klass->GetName().c_str(), error); + ServerInstance->Logs.Debug("CONNECTCLASS", "The {} connect class is not suitable as it requires the user to be logged into {}.", + klass->GetName(), error); return MOD_RES_DENY; } return MOD_RES_PASSTHRU; -- cgit v1.3.1-10-gc9f91