Skip to content

Commit

Permalink
Some more colouring fixes (refs 164e1a4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timo Smit committed Mar 14, 2017
1 parent 164e1a4 commit a24eefa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion luamods/wolfadmin/util/debug.lua
Expand Up @@ -30,7 +30,7 @@ local COLOURS_CONSOLE = {
[2] = "^1", -- error
[3] = "^3", -- warning
[4] = "^2", -- success
[5] = "^7", -- information
[5] = "", -- information
}

local neededSeverity = 5
Expand All @@ -39,6 +39,7 @@ function outputDebug(msg, severity)
local severity = severity or 5

if severity <= neededSeverity then
-- FIXME check whether non-legacymod servers handle colouring correctly
et.G_Print("[WolfAdmin] "..COLOURS_CONSOLE[severity]..msg.."\n")

for playerId = 0, et.trap_Cvar_Get("sv_maxclients") - 1 do
Expand Down

0 comments on commit a24eefa

Please sign in to comment.