1
0
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:
Ryan 2024-03-05 22:24:57 +01:00 committed by GitHub
parent 5860927ab1
commit 50ca685649
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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