exploit fix

This commit is contained in:
Johnny 2021-04-01 03:20:33 +03:00 committed by GitHub
parent afca346273
commit 7beb92b10e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,6 +39,11 @@ function bans.init()
local reason = args[3]
local name = args[4]
-- Check steamid
if not ULib.isValidSteamID(steamID) then
ULib.tsayError( ply, "Invalid steamid", true )
return
end
-- Check restrictions
local cmd = ULib.cmds.translatedCmds[ "ulx ban" ]
@ -278,4 +283,4 @@ function bans.postinit()
bans.unbanTimer()
end
xgui.addSVModule( "bans", bans.init, bans.postinit )
xgui.addSVModule( "bans", bans.init, bans.postinit )