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_shun.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/modules/m_shun.cpp') diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp index d36e06c22..20bafbadb 100644 --- a/src/modules/m_shun.cpp +++ b/src/modules/m_shun.cpp @@ -85,11 +85,11 @@ public: if (ServerInstance->XLines->DelLine(parameters[0].c_str(), "SHUN", reason, user)) { - ServerInstance->SNO.WriteToSnoMask('x', "%s removed SHUN on %s: %s", user->nick.c_str(), parameters[0].c_str(), reason.c_str()); + ServerInstance->SNO.WriteToSnoMask('x', "{} removed SHUN on {}: {}", user->nick, parameters[0], reason); } else if (ServerInstance->XLines->DelLine(target.c_str(), "SHUN", reason, user)) { - ServerInstance->SNO.WriteToSnoMask('x', "%s removed SHUN on %s: %s", user->nick.c_str(), target.c_str(), reason.c_str()); + ServerInstance->SNO.WriteToSnoMask('x', "{} removed SHUN on {}: {}", user->nick, target, reason); } else { @@ -122,14 +122,14 @@ public: { if (!duration) { - ServerInstance->SNO.WriteToSnoMask('x', "%s added permanent SHUN for %s: %s", - user->nick.c_str(), target.c_str(), expr.c_str()); + ServerInstance->SNO.WriteToSnoMask('x', "{} added permanent SHUN for {}: {}", + user->nick, target, expr); } else { - ServerInstance->SNO.WriteToSnoMask('x', "%s added a timed SHUN on %s, expires in %s (on %s): %s", - user->nick.c_str(), target.c_str(), Duration::ToString(duration).c_str(), - InspIRCd::TimeString(ServerInstance->Time() + duration).c_str(), expr.c_str()); + ServerInstance->SNO.WriteToSnoMask('x', "{} added a timed SHUN on {}, expires in {} (on {}): {}", + user->nick, target, Duration::ToString(duration), + InspIRCd::TimeString(ServerInstance->Time() + duration), expr); } } else -- cgit v1.3.1-10-gc9f91