forked from TeamUlysses/ulx
exploit fix
This commit is contained in:
parent
afca346273
commit
7beb92b10e
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user