From 7e7556f06445d4d8e607ef514c9fb5009899db73 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 30 Mar 2013 23:38:40 -0500 Subject: Merge usefulness of Timer and CallBack classes into Timer, and fix it to really work --- modules/commands/bs_set.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/commands/bs_set.cpp') 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); } }; -- cgit