summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-10 22:56:03 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-10 22:56:03 +0000
commitb73210e538038a8dd803c0c250369b8fd3c2b3f7 (patch)
tree5e35bc86ca22875321378dd755d32999efdf7bb3 /src/modules
parent01d43e7db5514e29460c7952762739cdb7ee4b23 (diff)
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
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/cs_enforce.c13
1 files changed, 2 insertions, 11 deletions
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);