diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:10 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:10 +0000 |
commit | 3d4bf6d876f2ad537506cc2e3d0ef5d7051762e6 (patch) | |
tree | 2de775b292544e414a104a7992a659ebe7bdb579 /src/protocol/ratbox.c | |
parent | b18604c31c0c5a4f3a4d08d8338985a0d311fa0a (diff) |
Added cmd_svskill() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1213 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/ratbox.c')
-rw-r--r-- | src/protocol/ratbox.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c index a7b67971c..e0b3ebfc9 100644 --- a/src/protocol/ratbox.c +++ b/src/protocol/ratbox.c @@ -825,22 +825,11 @@ void RatboxProto::cmd_akill(const char *user, const char *host, const char *who, send_cmd(UseTS6 ? (ud ? ud->uid : s_OperServ) : s_OperServ, "KLINE * %ld %s %s :%s", static_cast<long>(expires - time(NULL)), user, host, reason); } -void ratbox_cmd_svskill(const char *source, const char *user, const char *buf) +void RatboxProto::cmd_svskill(const char *source, const char *user, const char *buf) { - Uid *ud, *ud2; - - if (!buf) { - return; - } - - if (!source || !user) { - return; - } - - ud = find_uid(source); - ud2 = find_uid(user); - send_cmd((UseTS6 ? (ud ? ud->uid : source) : source), "KILL %s :%s", - (UseTS6 ? (ud2 ? ud2->uid : user) : user), buf); + if (!source || !user || !buf) return; + Uid *ud = find_uid(source), *ud2 = find_uid(user); + send_cmd(UseTS6 ? (ud ? ud->uid : source) : source, "KILL %s :%s", UseTS6 ? (ud2 ? ud2->uid : user) : user, buf); } void ratbox_cmd_svsmode(User * u, int ac, const char **av) @@ -1713,7 +1702,6 @@ void ratbox_cmd_ctcp(const char *source, const char *dest, const char *buf) **/ void moduleAddAnopeCmds() { - pmodule_cmd_svskill(ratbox_cmd_svskill); pmodule_cmd_svsmode(ratbox_cmd_svsmode); pmodule_cmd_372(ratbox_cmd_372); pmodule_cmd_372_error(ratbox_cmd_372_error); |