From f074a573e698a237f992ee798e08ffba6c9a857c Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Sat, 3 Nov 2012 17:22:24 +0100 Subject: [PATCH] Some minor fixes for first login --- Monomyth.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Monomyth.lua b/Monomyth.lua index cfce334..1bdee29 100644 --- a/Monomyth.lua +++ b/Monomyth.lua @@ -7,7 +7,7 @@ local modifier function Monomyth:Register(event, func, override) self:RegisterEvent(event) self[event] = function(...) - if(MonomythDB.toggle and (override or not modifier)) then + if((MonomythDB and MonomythDB.toggle or true) and (override or not modifier)) then func(...) end end @@ -258,7 +258,7 @@ local ignoredItems = { Monomyth:Register('BAG_UPDATE', function(bag) if(atBank or atMail or atMerchant) then return end - if(not MonomythDB.items) then return end + if(not (MonomythDB and MonomythDB.items or true)) then return end for slot = 1, GetContainerNumSlots(bag) do local _, id, active = GetContainerItemQuestInfo(bag, slot) -- 1.7.9.5