Mercurial > wow > devian
changeset 1:a13243a4118b
empty output detection
cleaning old code
author | Nenue |
---|---|
date | Thu, 17 Dec 2015 03:07:00 -0500 |
parents | 585221424a93 |
children | 77adceb8ebe4 |
files | Devian.lua |
diffstat | 1 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/Devian.lua Tue Dec 15 10:18:27 2015 -0500 +++ b/Devian.lua Thu Dec 17 03:07:00 2015 -0500 @@ -3,14 +3,9 @@ if not LibStub then print('Something has happened...') end - Devian = LibStub("AceAddon-3.0"):NewAddon("Devian", "AceConsole-3.0", "AceEvent-3.0") local D = _G.Devian - local db -local msg = function(...) - D:Print(...) -end local STATE_LOW, STATE_HIGH = 1, 2 local PLAYER_REALM = UnitName("player") .. '-' .. GetRealmName() local DEVIAN_FRAME = DevianDebugInfo @@ -141,7 +136,10 @@ local prefix_cache = {} local function Message(prefix, ...) - + if prefix == nil then + oldprint('Tried to print nothing.') + return + end -- colorize if not prefix_cache[prefix] then local c = {0, 0, 0 }