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_enforce.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_enforce.c')
-rw-r--r-- | src/modules/cs_enforce.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/modules/cs_enforce.c b/src/modules/cs_enforce.c index 6937d4dc8..d02ddd224 100644 --- a/src/modules/cs_enforce.c +++ b/src/modules/cs_enforce.c @@ -118,12 +118,9 @@ class CommandCSEnforce : public Command u = user->user; if (check_access(u, c->ci, CA_NOJOIN)) { - av[0] = "+b"; get_idealban(ci, u, mask, sizeof(mask)); - av[1] = mask; reason = getstring(u, CHAN_NOT_ALLOWED_TO_JOIN); - ircdproto->SendMode(whosends(ci), ci->name, "+b %s %lu", mask, time(NULL)); - chan_set_modes(Config.s_ChanServ, c, 2, av, 1); + c->SetMode(NULL, CMODE_BAN, mask); ircdproto->SendKick(whosends(ci), ci->name, u->nick, "%s", reason); av[0] = ci->name; av[1] = u->nick; @@ -159,14 +156,11 @@ class CommandCSEnforce : public Command u = user->user; if (!nick_identified(u)) { - av[0] = "+b"; get_idealban(ci, u, mask, sizeof(mask)); - av[1] = mask; reason = getstring(u, CHAN_NOT_ALLOWED_TO_JOIN); if (!c->HasMode(CMODE_REGISTERED)) { - ircdproto->SendMode(whosends(ci), ci->name, "+b %s %lu", mask, time(NULL)); - chan_set_modes(Config.s_ChanServ, c, 2, av, 1); + c->SetMode(NULL, CMODE_BAN, mask); } ircdproto->SendKick(whosends(ci), ci->name, u->nick, "%s", reason); av[0] = ci->name; |