aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_hideoper.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/modules/m_hideoper.cpp
parentMerge branch 'insp4' into master. (diff)
Always use fmtlib directly.
Diffstat (limited to 'src/modules/m_hideoper.cpp')
-rw-r--r--src/modules/m_hideoper.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_hideoper.cpp b/src/modules/m_hideoper.cpp
index af9500563..80e25be24 100644
--- a/src/modules/m_hideoper.cpp
+++ b/src/modules/m_hideoper.cpp
@@ -160,7 +160,7 @@ public:
const std::string awayperiod = Duration::ToString(ServerInstance->Time() - oper->away->time);
const std::string awaytime = Time::ToString(oper->away->time);
- extra = INSP_FORMAT(": away for {} [since {}] ({})", awayperiod, awaytime, oper->away->message);
+ extra = fmt::format(": away for {} [since {}] ({})", awayperiod, awaytime, oper->away->message);
}
auto* loper = IS_LOCAL(oper);
@@ -169,10 +169,10 @@ public:
const std::string idleperiod = Duration::ToString(ServerInstance->Time() - loper->idle_lastmsg);
const std::string idletime = Time::ToString(loper->idle_lastmsg);
- extra += INSP_FORMAT("{} idle for {} [since {}]", extra.empty() ? ':' : ',', idleperiod, idletime);
+ extra += fmt::format("{} idle for {} [since {}]", extra.empty() ? ':' : ',', idleperiod, idletime);
}
- stats.AddGenericRow(INSP_FORMAT("\x02{}\x02 ({}){}", oper->nick, oper->GetUserHost(), extra));
+ stats.AddGenericRow(fmt::format("\x02{}\x02 ({}){}", oper->nick, oper->GetUserHost(), extra));
}
// Sort opers alphabetically.
@@ -180,7 +180,7 @@ public:
return lhs.GetParams()[1] < rhs.GetParams()[1];
});
- stats.AddGenericRow(INSP_FORMAT("{} server operator{} total", stats.GetRows().size(), stats.GetRows().size() ? "s" : ""));
+ stats.AddGenericRow(fmt::format("{} server operator{} total", stats.GetRows().size(), stats.GetRows().size() ? "s" : ""));
return MOD_RES_DENY;
}
};