From b73210e538038a8dd803c0c250369b8fd3c2b3f7 Mon Sep 17 00:00:00 2001 From: Adam- Date: Sun, 10 Jan 2010 22:56:03 +0000 Subject: Rewrote the code that handles and sends kicks git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2746 5417fbe8-f217-4b02-8779-1006273d7864 --- src/modules/cs_enforce.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'src/modules') diff --git a/src/modules/cs_enforce.c b/src/modules/cs_enforce.c index 32f2c85c2..56ac4cc9b 100644 --- a/src/modules/cs_enforce.c +++ b/src/modules/cs_enforce.c @@ -121,11 +121,7 @@ class CommandCSEnforce : public Command get_idealban(ci, u, mask, sizeof(mask)); reason = getstring(u, CHAN_NOT_ALLOWED_TO_JOIN); c->SetMode(NULL, CMODE_BAN, mask); - ircdproto->SendKick(whosends(ci), ci->c, u, "%s", reason); - av[0] = ci->name.c_str(); - av[1] = u->nick.c_str(); - av[2] = reason; - do_kick(Config.s_ChanServ, 3, av); + c->Kick(NULL, u, "%s", reason); } user = next; } while (user); @@ -140,7 +136,6 @@ class CommandCSEnforce : public Command ChannelInfo *ci; char mask[BUFSIZE]; const char *reason; - const char *av[3]; User *u; if (!(ci = c->ci)) @@ -162,11 +157,7 @@ class CommandCSEnforce : public Command { c->SetMode(NULL, CMODE_BAN, mask); } - ircdproto->SendKick(whosends(ci), ci->c, u, "%s", reason); - av[0] = ci->name.c_str(); - av[1] = u->nick.c_str(); - av[2] = reason; - do_kick(Config.s_ChanServ, 3, av); + c->Kick(NULL, u, "%s", reason); } user = next; } while (user); -- cgit