From 4ff3aaccd8425c9ead5e9c04251cab0e2e3f828f Mon Sep 17 00:00:00 2001 From: rburchell Date: Sat, 15 Nov 2008 12:28:15 +0000 Subject: [PATCH] Fix an incorrect cast causing bans to appear to come from 1940. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1689 5417fbe8-f217-4b02-8779-1006273d7864 --- src/protocol/inspircd12.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/protocol/inspircd12.cpp b/src/protocol/inspircd12.cpp index aa446b65f..e726b01d0 100644 --- a/src/protocol/inspircd12.cpp +++ b/src/protocol/inspircd12.cpp @@ -509,8 +509,9 @@ class InspIRCdProto : public IRCDProto { // Calculate the time left before this would expire, capping it at 2 days time_t timeleft = expires - time(NULL); - if (timeleft > 172800) timeleft = 172800; - send_cmd(ServerName, "ADDLINE G %s@%s %s %ld %ld :%s", user, host, who, static_cast(when), static_cast(timeleft), reason); + if (timeleft > 172800) + timeleft = 172800; + send_cmd(ServerName, "ADDLINE G %s@%s %s %ld %ld :%s", user, host, who, static_cast(when), static_cast(timeleft), reason); } void SendSVSKillInternal(const char *source, const char *user, const char *buf)