diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:11 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:11 +0000 |
commit | ac05ac3857b8c3ccd8a6ea2444c738c954668ee2 (patch) | |
tree | 58a8a2a39609f13b618b2f7fa61cf0d64bce9751 /src/protocol/ratbox.c | |
parent | d3a79969c2bced3f53ff440c40582a858632f900 (diff) |
Added cmd_kick() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1220 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/ratbox.c')
-rw-r--r-- | src/protocol/ratbox.c | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c index 404db2ad3..25f55072a 100644 --- a/src/protocol/ratbox.c +++ b/src/protocol/ratbox.c @@ -1287,22 +1287,12 @@ void RatboxProto::cmd_nick(const char *nick, const char *name, const char *mode) ratbox_cmd_sqline(nick, "Reserved for services"); } -void ratbox_cmd_kick(const char *source, const char *chan, const char *user, const char *buf) +void RatboxProto::cmd_kick(const char *source, const char *chan, const char *user, const char *buf) { - Uid *ud; - User *u; - - ud = find_uid(source); - u = finduser(user); - - if (buf) { - send_cmd((UseTS6 ? (ud ? ud->uid : source) : source), - "KICK %s %s :%s", chan, - (UseTS6 ? (u ? u->uid : user) : user), buf); - } else { - send_cmd((UseTS6 ? (ud ? ud->uid : source) : source), "KICK %s %s", - chan, (UseTS6 ? (u ? u->uid : user) : user)); - } + Uid *ud = find_uid(source); + User *u = finduser(user); + if (buf) send_cmd(UseTS6 ? (ud ? ud->uid : source) : source, "KICK %s %s :%s", chan, UseTS6 ? (u ? u->uid : user) : user, buf); + else send_cmd(UseTS6 ? (ud ? ud->uid : source) : source, "KICK %s %s", chan, UseTS6 ? (u ? u->uid : user) : user); } void ratbox_cmd_notice_ops(const char *source, const char *dest, const char *buf) @@ -1682,7 +1672,6 @@ void moduleAddAnopeCmds() pmodule_cmd_372_error(ratbox_cmd_372_error); pmodule_cmd_375(ratbox_cmd_375); pmodule_cmd_376(ratbox_cmd_376); - pmodule_cmd_kick(ratbox_cmd_kick); pmodule_cmd_notice_ops(ratbox_cmd_notice_ops); pmodule_cmd_notice(ratbox_cmd_notice); pmodule_cmd_notice2(ratbox_cmd_notice2); |