diff options
author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-15 12:28:15 +0000 |
---|---|---|
committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-15 12:28:15 +0000 |
commit | 4ff3aaccd8425c9ead5e9c04251cab0e2e3f828f (patch) | |
tree | d0498b3b1d63ab861c007bfe3b196234d3617f8d | |
parent | 60a55fcf16b6c3e282400d2820b023a00543fb56 (diff) |
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
-rw-r--r-- | src/protocol/inspircd12.cpp | 5 |
1 files 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<long>(when), static_cast<long>(timeleft), reason); + if (timeleft > 172800) + timeleft = 172800; + send_cmd(ServerName, "ADDLINE G %s@%s %s %ld %ld :%s", user, host, who, static_cast<long int>(when), static_cast<long int>(timeleft), reason); } void SendSVSKillInternal(const char *source, const char *user, const char *buf) |