From 6a0340b453460b6608bffffb361fa569f74bf29d Mon Sep 17 00:00:00 2001 From: "Robin Burchell w00t@inspircd.org" Date: Tue, 30 Sep 2008 18:45:12 +0000 Subject: Added cmd_svshold() function to IRCDProtoNew class. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1250 5417fbe8-f217-4b02-8779-1006273d7864 --- src/protocol/unreal32.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/protocol/unreal32.c') diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c index eb3417f22..e34531e62 100644 --- a/src/protocol/unreal32.c +++ b/src/protocol/unreal32.c @@ -1338,11 +1338,10 @@ int anope_event_whois(const char *source, int ac, const char **av) } /* SVSHOLD - set */ -void unreal_cmd_svshold(const char *nick) +void UnrealIRCdProto::cmd_svshold(const char *nick) { - send_cmd(NULL, "%s + Q H %s %s %ld %ld :%s", send_token("TKL", "BD"), - nick, ServerName, (long int) time(NULL) + NSReleaseTimeout, - (long int) time(NULL), "Being held for registered user"); + send_cmd(NULL, "%s + Q H %s %s %ld %ld :%s", send_token("TKL", "BD"), nick, ServerName, static_cast(time(NULL) + NSReleaseTimeout), + static_cast(time(NULL)), "Being held for registered user"); } /* SVSHOLD - release */ @@ -1940,7 +1939,6 @@ void moduleAddAnopeCmds() pmodule_cmd_242(unreal_cmd_242); pmodule_cmd_243(unreal_cmd_243); pmodule_cmd_211(unreal_cmd_211); - pmodule_cmd_svshold(unreal_cmd_svshold); pmodule_cmd_release_svshold(unreal_cmd_release_svshold); pmodule_cmd_unsgline(unreal_cmd_unsgline); pmodule_cmd_unszline(unreal_cmd_unszline); -- cgit