From aa0b7ebd81977990161d194813574be6c33913cf Mon Sep 17 00:00:00 2001 From: Linventif Date: Fri, 29 Mar 2024 15:34:43 +0100 Subject: [PATCH] fix: CurTime() not curtime() --- lua/gmod_integration/shared/sh_http.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/gmod_integration/shared/sh_http.lua b/lua/gmod_integration/shared/sh_http.lua index f1b4da9..5bfec86 100644 --- a/lua/gmod_integration/shared/sh_http.lua +++ b/lua/gmod_integration/shared/sh_http.lua @@ -31,7 +31,8 @@ end local lastErrorMessages = 0 local function noTokenError() - if (curTime() - lastErrorMessages < 10) then return end + if CurTime() - lastErrorMessages < 5 then return end + lastErrorMessages = CurTime() gmInte.log("HTTP Failed: No token provided") end