diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-12-13 19:32:19 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-12-13 19:32:19 +0000 |
commit | a7ac6a0ac712892652da6dd8696b94d4c6d3ea84 (patch) | |
tree | 9bbcf49157cfda0577c34515cb44d4462818c1da /src/modules/cs_tban.c | |
parent | 3a956c51be22f1b6f3b6808c9f56fb6b26c7dd1a (diff) |
Added in a modestacker and rewrote almost all of the remaining old mode code
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2696 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules/cs_tban.c')
-rw-r--r-- | src/modules/cs_tban.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/src/modules/cs_tban.c b/src/modules/cs_tban.c index 7da2a90ed..7f84f3e85 100644 --- a/src/modules/cs_tban.c +++ b/src/modules/cs_tban.c @@ -179,33 +179,18 @@ class TempBan : public Timer void Tick(time_t ctime) { - const char *av[3]; Channel *c; - av[0] = "-b"; - av[1] = mask.c_str(); - if ((c = findchan(chan.c_str())) && c->ci) { - ircdproto->SendMode(whosends(c->ci), c->name, "-b %s", av[1]); - chan_set_modes(Config.s_ChanServ, c, 2, av, 1); + c->RemoveMode(NULL, CMODE_BAN, mask); } } }; void addBan(Channel *c, time_t timeout, char *banmask) { - const char *av[3]; - char *cb[2]; - - cb[0] = c->name; - cb[1] = banmask; - - av[0] = "+b"; - av[1] = banmask; - - ircdproto->SendMode(whosends(c->ci), c->name, "+b %s", av[1]); - chan_set_modes(Config.s_ChanServ, c, 2, av, 1); + c->SetMode(NULL, CMODE_BAN, banmask); me->AddCallBack(new TempBan(timeout, c->name, banmask)); } |