- Added /details exitlog: shows occurrences of errors during the last logoff.

This commit is contained in:
tercio
2014-12-30 01:17:59 -02:00
parent 4bf68ad564
commit 6c0f98b736
3 changed files with 21 additions and 1 deletions
+18
View File
@@ -82,6 +82,24 @@ function SlashCmdList.DETAILS (msg, editbox)
-------- debug ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
elseif (msg == "exitlog") then
local exitlog = _detalhes_global.exit_log
local exiterrors = _detalhes_global.exit_errors
print ("EXIT LOG:")
for index, text in ipairs (exitlog) do
print (text)
end
print ("ERRORS:")
if (exiterrors) then
for index, text in ipairs (exiterrors) do
print (text)
end
else
print ("|cFF00FF00No error occured!|r")
end
elseif (msg == "realmsync") then
_detalhes.realm_sync = not _detalhes.realm_sync