Skip to content

Instantly share code, notes, and snippets.

@FloooD
Created May 8, 2011
Embed
What would you like to do?
prevents server from being crashed by spammerfags
if not antispam then antispam = {}
antispam.blocked = {}
function antispam.unblock(id)
antispam.blocked[tonumber(id)] = nil
end
function antispam.generic(id)
if antispam.blocked[id] then
return 1
else
antispam.blocked[id] = true
timer(200, "antispam.unblock", tostring(id))
end
end
addhook("say", "antispam.generic")
addhook("sayteam", "antispam.generic")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment