mirror of
https://github.com/Earu/EasyChat.git
synced 2025-03-04 03:13:20 -05:00
hook for indications serverside
This commit is contained in:
parent
5860927ab1
commit
50ca685649
@ -407,6 +407,8 @@ if SERVER then
|
||||
local RATE_LIMIT = 4
|
||||
net.Receive(TAG, function(_, ply)
|
||||
if CurTime() <= (ply.NextAIC or 0) then return end
|
||||
local ret = EasyChat.SafeHookRun("ECCanIndicate", ply)
|
||||
if ret == false then return end
|
||||
|
||||
ply.NextAIC = CurTime() + RATE_LIMIT
|
||||
|
||||
@ -442,4 +444,4 @@ if SERVER then
|
||||
end)
|
||||
end
|
||||
|
||||
return "Indicate"
|
||||
return "Indicate"
|
||||
|
Loading…
Reference in New Issue
Block a user