# HG changeset patch # User Nenue # Date 1450339620 18000 # Node ID a13243a4118b916bd69bf46f0c417148c7993d6e # Parent 585221424a939506013db028152d1038fe3db264 empty output detection cleaning old code diff -r 585221424a93 -r a13243a4118b Devian.lua --- 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 }