diff ReAction.lua @ 43:dc898780fea8

handle profile resets
author Flick <flickerstreak@gmail.com>
date Thu, 03 Apr 2008 23:15:32 +0000
parents e0d8074a5bc7
children aa0b7fd68462
line wrap: on
line diff
--- a/ReAction.lua	Thu Apr 03 21:36:26 2008 +0000
+++ b/ReAction.lua	Thu Apr 03 23:15:32 2008 +0000
@@ -142,6 +142,7 @@
     -- default profile is character-specific
   )
   self.db.RegisterCallback(self,"OnProfileChanged")
+  self.db.RegisterCallback(self,"OnProfileReset","OnProfileChanged")
   self.callbacks = LibStub("CallbackHandler-1.0"):New(self)
   self:RegisterChatCommand("reaction", SlashHandler)
   self:RegisterChatCommand("rxn", SlashHandler)
@@ -216,6 +217,9 @@
   if not m then
     LoadAddOn(("ReAction_%s"):format(modulename))
     m = self:GetModule(modulename,true)
+    if m then
+      dbprint(("succesfully loaded LOD module: %s"):format(modulename))
+    end
   end
   if m then
     if type(m) == "table" and type(m[method]) == "function" then