From 235c4ae95c1cf467ec47514c2226df675494c12c Mon Sep 17 00:00:00 2001 From: Adam- Date: Thu, 25 Feb 2010 06:20:00 +0000 Subject: Rewrote part of the Timer and CallBack code for modules to be sane git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2795 5417fbe8-f217-4b02-8779-1006273d7864 --- src/modules/cs_tban.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules') diff --git a/src/modules/cs_tban.c b/src/modules/cs_tban.c index 07f7f6c0f..46c678522 100644 --- a/src/modules/cs_tban.c +++ b/src/modules/cs_tban.c @@ -168,14 +168,14 @@ void mySendResponse(User *u, const char *channel, char *mask, const char *time) me->NoticeLang(Config.s_ChanServ, u, TBAN_RESPONSE, mask, channel, time); } -class TempBan : public Timer +class TempBan : public CallBack { private: std::string chan; std::string mask; public: - TempBan(time_t seconds, const std::string &channel, const std::string &banmask) : Timer(seconds), chan(channel), mask(banmask) { } + TempBan(time_t seconds, const std::string &channel, const std::string &banmask) : CallBack(me, seconds), chan(channel), mask(banmask) { } void Tick(time_t ctime) { @@ -192,7 +192,7 @@ void addBan(Channel *c, time_t timeout, char *banmask) { c->SetMode(NULL, CMODE_BAN, banmask); - me->AddCallBack(new TempBan(timeout, c->name, banmask)); + new TempBan(timeout, c->name, banmask); } int canBanUser(Channel * c, User * u, User * u2) -- cgit