diff options
author | Adam <Adam@anope.org> | 2013-03-30 23:38:40 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-03-30 23:39:43 -0500 |
commit | 7e7556f06445d4d8e607ef514c9fb5009899db73 (patch) | |
tree | fde8e4e7c59f40183e215cd69ce0d042670b24b9 /modules/commands/bs_set.cpp | |
parent | 111d6a917806fd3ce2269436d08d68bd7eb1d5ea (diff) |
Merge usefulness of Timer and CallBack classes into Timer, and fix it to really work
Diffstat (limited to 'modules/commands/bs_set.cpp')
-rw-r--r-- | modules/commands/bs_set.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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); } }; |