diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:12 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:12 +0000 |
commit | 8d6828fb8f84431c50914fa9161c46bdfa67a384 (patch) | |
tree | 5afc7429ce42ad552432ace90453509610af2069 /src/protocol/unreal32.c | |
parent | 344187e10cb408b1e56913691db9ac3eb724bc67 (diff) |
Added cmd_szline() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1254 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/unreal32.c')
-rw-r--r-- | src/protocol/unreal32.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c index 2e833f288..c5e85f180 100644 --- a/src/protocol/unreal32.c +++ b/src/protocol/unreal32.c @@ -1366,11 +1366,9 @@ void UnrealIRCdProto::cmd_unszline(const char *mask) } /* SZLINE */ -void unreal_cmd_szline(const char *mask, const char *reason, const char *whom) +void UnrealIRCdProto::cmd_szline(const char *mask, const char *reason, const char *whom) { - send_cmd(NULL, "%s + Z * %s %s %ld %ld :%s", send_token("TKL", "BD"), - mask, whom, (long int) time(NULL) + 86400 * 2, - (long int) time(NULL), reason); + send_cmd(NULL, "%s + Z * %s %s %ld %ld :%s", send_token("TKL", "BD"), mask, whom, static_cast<long>(time(NULL) + 172800), static_cast<long>(time(NULL)), reason); } /* SGLINE */ @@ -1937,7 +1935,6 @@ void moduleAddAnopeCmds() pmodule_cmd_242(unreal_cmd_242); pmodule_cmd_243(unreal_cmd_243); pmodule_cmd_211(unreal_cmd_211); - pmodule_cmd_szline(unreal_cmd_szline); pmodule_cmd_sgline(unreal_cmd_sgline); pmodule_cmd_unban(unreal_cmd_unban); pmodule_cmd_svsmode_chan(unreal_cmd_svsmode_chan); |