1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
local SPAM_WARNING_PERIOD_SECONDS = 600
local g_lastSpamWarnings = { }
local spamTypeTime = g_lastSpamWarnings [ spamType ]
if spamTypeTime == nil or currentTime - spamTypeTime > SPAM_WARNING_PERIOD_SECONDS then
g_lastSpamWarnings [ spamType ] = currentTime
end
end
|