1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 05:03:11 +02:00

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
This commit is contained in:
rburchell
2008-11-15 12:28:15 +00:00
parent 60a55fcf16
commit 4ff3aaccd8
+3 -2
View File
@@ -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)