From 30b9f127113cc715cf90f87a298572b8a73b6788 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 11 Feb 2024 17:53:32 +0000 Subject: Remove the now parameter from the Timer class. This was never actually changed from the default. --- modules/chanserv/chanserv.cpp | 6 +++++- modules/chanserv/cs_ban.cpp | 8 +++++++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'modules/chanserv') diff --git a/modules/chanserv/chanserv.cpp b/modules/chanserv/chanserv.cpp index c47f2d77f..783c47261 100644 --- a/modules/chanserv/chanserv.cpp +++ b/modules/chanserv/chanserv.cpp @@ -51,7 +51,11 @@ public: /** Constructor * @param chan The channel */ - ChanServTimer(Reference &cs, ExtensibleItem &i, Module *m, Channel *chan) : Timer(m, Config->GetModule(m)->Get("inhabit", "15s")), ChanServ(cs), inhabit(i), c(chan) + ChanServTimer(Reference &cs, ExtensibleItem &i, Module *m, Channel *chan) + : Timer(m, Config->GetModule(m)->Get("inhabit", "15s")) + , ChanServ(cs) + , inhabit(i) + , c(chan) { if (!ChanServ || !c) return; diff --git a/modules/chanserv/cs_ban.cpp b/modules/chanserv/cs_ban.cpp index ff019e602..da54cd4f1 100644 --- a/modules/chanserv/cs_ban.cpp +++ b/modules/chanserv/cs_ban.cpp @@ -22,7 +22,13 @@ private: Anope::string mode; public: - TempBan(time_t seconds, Channel *c, const Anope::string &banmask, const Anope::string &mod) : Timer(me, seconds), channel(c->name), mask(banmask), mode(mod) { } + TempBan(time_t seconds, Channel *c, const Anope::string &banmask, const Anope::string &mod) + : Timer(me, seconds) + , channel(c->name) + , mask(banmask) + , mode(mod) + { + } void Tick(time_t ctime) override { -- cgit