summaryrefslogtreecommitdiff
path: root/modules/commands
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands')
-rw-r--r--modules/commands/bs_kick.cpp4
-rw-r--r--modules/commands/bs_set.cpp8
-rw-r--r--modules/commands/cs_ban.cpp4
-rw-r--r--modules/commands/cs_seen.cpp4
-rw-r--r--modules/commands/os_defcon.cpp4
5 files changed, 12 insertions, 12 deletions
diff --git a/modules/commands/bs_kick.cpp b/modules/commands/bs_kick.cpp
index 252220d09..3f7cc16c2 100644
--- a/modules/commands/bs_kick.cpp
+++ b/modules/commands/bs_kick.cpp
@@ -680,10 +680,10 @@ struct UserData : ExtensibleItem
};
-class BanDataPurger : public CallBack
+class BanDataPurger : public Timer
{
public:
- BanDataPurger(Module *owner) : CallBack(owner, 300, Anope::CurTime, true) { }
+ BanDataPurger(Module *o) : Timer(o, 300, Anope::CurTime, true) { }
void Tick(time_t) anope_override
{
diff --git a/modules/commands/bs_set.cpp b/modules/commands/bs_set.cpp
index 41c84bf87..5aa8a77ec 100644
--- a/modules/commands/bs_set.cpp
+++ b/modules/commands/bs_set.cpp
@@ -57,15 +57,15 @@ class CommandBSSet : public Command
class CommandBSSetBanExpire : public Command
{
public:
- class Timer : public CallBack
+ class UnbanTimer : public Timer
{
Anope::string chname;
Anope::string mask;
public:
- Timer(Module *creator, const Anope::string &ch, const Anope::string &bmask, time_t t) : CallBack(creator, t), chname(ch), mask(bmask) { }
+ UnbanTimer(Module *creator, const Anope::string &ch, const Anope::string &bmask, time_t t) : Timer(creator, t), chname(ch), mask(bmask) { }
- void Tick(time_t)
+ void Tick(time_t) anope_override
{
Channel *c = Channel::Find(chname);
if (c)
@@ -504,7 +504,7 @@ class BSSet : public Module
if (!ci->banexpire)
return;
- new CommandBSSetBanExpire::Timer(this, ci->name, mask, ci->banexpire);
+ new CommandBSSetBanExpire::UnbanTimer(this, ci->name, mask, ci->banexpire);
}
};
diff --git a/modules/commands/cs_ban.cpp b/modules/commands/cs_ban.cpp
index c39f7f392..52c372fb4 100644
--- a/modules/commands/cs_ban.cpp
+++ b/modules/commands/cs_ban.cpp
@@ -15,14 +15,14 @@
static Module *me;
-class TempBan : public CallBack
+class TempBan : public Timer
{
private:
Anope::string channel;
Anope::string mask;
public:
- TempBan(time_t seconds, Channel *c, const Anope::string &banmask) : CallBack(me, seconds), channel(c->name), mask(banmask) { }
+ TempBan(time_t seconds, Channel *c, const Anope::string &banmask) : Timer(me, seconds), channel(c->name), mask(banmask) { }
void Tick(time_t ctime) anope_override
{
diff --git a/modules/commands/cs_seen.cpp b/modules/commands/cs_seen.cpp
index cd12695aa..10c23dd53 100644
--- a/modules/commands/cs_seen.cpp
+++ b/modules/commands/cs_seen.cpp
@@ -293,10 +293,10 @@ class CommandSeen : public Command
}
};
-class DataBasePurger : public CallBack
+class DataBasePurger : public Timer
{
public:
- DataBasePurger(Module *owner) : CallBack(owner, 300, Anope::CurTime, true) { }
+ DataBasePurger(Module *o) : Timer(o, 300, Anope::CurTime, true) { }
void Tick(time_t) anope_override
{
diff --git a/modules/commands/os_defcon.cpp b/modules/commands/os_defcon.cpp
index fe2ecc99f..214c14f2a 100644
--- a/modules/commands/os_defcon.cpp
+++ b/modules/commands/os_defcon.cpp
@@ -104,12 +104,12 @@ static ServiceReference<GlobalService> GlobalService("GlobalService", "Global");
static Timer *timeout;
-class DefConTimeout : public CallBack
+class DefConTimeout : public Timer
{
int level;
public:
- DefConTimeout(Module *mod, int newlevel) : CallBack(mod, DConfig.timeout), level(newlevel)
+ DefConTimeout(Module *mod, int newlevel) : Timer(mod, DConfig.timeout), level(newlevel)
{
timeout = this;
}