Removed permission for debug output

Debug output is already controlled via a CVAR and including the 'auth' module would create more dependencies in debug.lua (unwanted)
This commit is contained in:
Timo Smit 2016-09-02 14:06:33 +02:00
parent 0aa330ad1b
commit e33b9480c9

View file

@ -36,7 +36,7 @@ function outputDebug(msg, severity)
et.G_Print("[WolfAdmin] "..msg.."\n")
for playerId = 0, et.trap_Cvar_Get("sv_maxclients") - 1 do
if settings.get("g_debugWolfAdmin") ~= 0 and et.G_shrubbot_permission(playerId, "*") then
if settings.get("g_debugWolfAdmin") ~= 0 then
et.trap_SendConsoleCommand(et.EXEC_APPEND, "csay "..playerId.." \"^:[WolfAdmin DEBUG] "..SEVERITY_LEVELS[severity]..msg.."\";")
end
end