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 | 4996cc4b06c70df801403752e90a7078224beb45 (patch) | |
tree | 234fe6aba81ec3e70e7b8e6dfa92250569a0a8bd /src/protocol/ratbox.c | |
parent | c08993be094b5d0427985bee46e4d9d0d2ffbe56 (diff) |
Added cmd_akill() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1211 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/ratbox.c')
-rw-r--r-- | src/protocol/ratbox.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c index 98e13d0f4..a7b67971c 100644 --- a/src/protocol/ratbox.c +++ b/src/protocol/ratbox.c @@ -819,16 +819,10 @@ host: the 'host' portion of the kline reason: the reason for the kline. */ -void ratbox_cmd_akill(const char *user, const char *host, const char *who, time_t when, - time_t expires, const char *reason) +void RatboxProto::cmd_akill(const char *user, const char *host, const char *who, time_t when, time_t expires, const char *reason) { - Uid *ud; - - ud = find_uid(s_OperServ); - - send_cmd((UseTS6 ? (ud ? ud->uid : s_OperServ) : s_OperServ), - "KLINE * %ld %s %s :%s", - (long int) (expires - (long) time(NULL)), user, host, reason); + Uid *ud = find_uid(s_OperServ); + 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) @@ -1719,7 +1713,6 @@ void ratbox_cmd_ctcp(const char *source, const char *dest, const char *buf) **/ void moduleAddAnopeCmds() { - pmodule_cmd_akill(ratbox_cmd_akill); pmodule_cmd_svskill(ratbox_cmd_svskill); pmodule_cmd_svsmode(ratbox_cmd_svsmode); pmodule_cmd_372(ratbox_cmd_372); |