Some more colouring fixes (refs 164e1a4)

This commit is contained in:
Timo Smit 2017-03-14 22:38:34 +01:00
parent 164e1a4569
commit a24eefa248
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,7 @@ local COLOURS_CONSOLE = {
[2] = "^1", -- error [2] = "^1", -- error
[3] = "^3", -- warning [3] = "^3", -- warning
[4] = "^2", -- success [4] = "^2", -- success
[5] = "^7", -- information [5] = "", -- information
} }
local neededSeverity = 5 local neededSeverity = 5
@ -39,6 +39,7 @@ function outputDebug(msg, severity)
local severity = severity or 5 local severity = severity or 5
if severity <= neededSeverity then if severity <= neededSeverity then
-- FIXME check whether non-legacymod servers handle colouring correctly
et.G_Print("[WolfAdmin] "..COLOURS_CONSOLE[severity]..msg.."\n") et.G_Print("[WolfAdmin] "..COLOURS_CONSOLE[severity]..msg.."\n")
for playerId = 0, et.trap_Cvar_Get("sv_maxclients") - 1 do for playerId = 0, et.trap_Cvar_Get("sv_maxclients") - 1 do