From ac05ac3857b8c3ccd8a6ea2444c738c954668ee2 Mon Sep 17 00:00:00 2001 From: "Robin Burchell w00t@inspircd.org" Date: Tue, 30 Sep 2008 18:45:11 +0000 Subject: Added cmd_kick() function to IRCDProtoNew class. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1220 5417fbe8-f217-4b02-8779-1006273d7864 --- src/protocol/inspircd11.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/protocol/inspircd11.c') diff --git a/src/protocol/inspircd11.c b/src/protocol/inspircd11.c index 894e6d66d..8f9e3cdfa 100644 --- a/src/protocol/inspircd11.c +++ b/src/protocol/inspircd11.c @@ -767,13 +767,10 @@ void InspIRCdProto::cmd_bot_nick(const char *nick, const char *user, const char send_cmd(nick, "OPERTYPE Bot"); } -void inspircd_cmd_kick(const char *source, const char *chan, const char *user, const char *buf) +void InspIRCdProto::cmd_kick(const char *source, const char *chan, const char *user, const char *buf) { - if (buf) { - send_cmd(source, "KICK %s %s :%s", chan, user, buf); - } else { - send_cmd(source, "KICK %s %s :%s", chan, user, user); - } + if (buf) send_cmd(source, "KICK %s %s :%s", chan, user, buf); + else send_cmd(source, "KICK %s %s :%s", chan, user, user); } void inspircd_cmd_notice_ops(const char *source, const char *dest, const char *buf) @@ -1778,7 +1775,6 @@ void moduleAddAnopeCmds() pmodule_cmd_372_error(inspircd_cmd_372_error); pmodule_cmd_375(inspircd_cmd_375); pmodule_cmd_376(inspircd_cmd_376); - pmodule_cmd_kick(inspircd_cmd_kick); pmodule_cmd_notice_ops(inspircd_cmd_notice_ops); pmodule_cmd_notice(inspircd_cmd_notice); pmodule_cmd_notice2(inspircd_cmd_notice2); -- cgit