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/bahamut.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/bahamut.c')
-rw-r--r-- | src/protocol/bahamut.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c index b0cf99c14..dd3aea8a2 100644 --- a/src/protocol/bahamut.c +++ b/src/protocol/bahamut.c @@ -710,11 +710,10 @@ void BahamutIRCdProto::cmd_unszline(const char *mask) /* SZLINE */ void bahamut_cmd_szline(const char *mask, const char *reason, const char *whom) { - /* this will likely fail so its only here for legacy */ - send_cmd(NULL, "SZLINE %s :%s", mask, reason); - /* this is how we are supposed to deal with it */ - send_cmd(NULL, "AKILL %s * %d %s %ld :%s", mask, 86400 * 2, whom, - (long int) time(NULL), reason); + /* this will likely fail so its only here for legacy */ + send_cmd(NULL, "SZLINE %s :%s", mask, reason); + /* this is how we are supposed to deal with it */ + send_cmd(NULL, "AKILL %s * %d %s %ld :%s", mask, 172800, whom, static_cast<long>(time(NULL)), reason); } /* SVSNOOP */ @@ -1396,7 +1395,6 @@ void moduleAddAnopeCmds() pmodule_cmd_242(bahamut_cmd_242); pmodule_cmd_243(bahamut_cmd_243); pmodule_cmd_211(bahamut_cmd_211); - pmodule_cmd_szline(bahamut_cmd_szline); pmodule_cmd_sgline(bahamut_cmd_sgline); pmodule_cmd_unban(bahamut_cmd_unban); pmodule_cmd_svsmode_chan(bahamut_cmd_svsmode_chan); |