From a8a9dbd78792485d293987777e538d38f78b0478 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Tue, 16 Jan 2007 02:23:08 +0000 Subject: [PATCH] Default buffs should now copy properly into new profiles. --- Babelfish.lua | 2 ++ Localization.enUS.lua | 1 - PerfectRaid_Buffs.lua | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Babelfish.lua b/Babelfish.lua index 48d7099..01d19bb 100644 --- a/Babelfish.lua +++ b/Babelfish.lua @@ -53,3 +53,5 @@ for idx,match in ipairs(work) do print(string.format("\t[\"%s\"] = \"%s\",", match, val)) end print("}\n") +--print("setmetatable(PerfectRaidLocals, {__index=function(t,k) if not rawget(t,k) then return k else return t[k] end end})") + diff --git a/Localization.enUS.lua b/Localization.enUS.lua index a2a1438..948e60e 100644 --- a/Localization.enUS.lua +++ b/Localization.enUS.lua @@ -2,7 +2,6 @@ PerfectRaidLocals = { ["Add"] = "Add", - ["Adding defaults to new profile \"%s\""] = "Adding defaults to new profile \"%s\"", ["Aggro"] = "Aggro", ["Align frames to BOTTOM"] = "Align frames to BOTTOM", ["Align frames to RIGHT"] = "Align frames to RIGHT", diff --git a/PerfectRaid_Buffs.lua b/PerfectRaid_Buffs.lua index 8508d2d..1274f54 100644 --- a/PerfectRaid_Buffs.lua +++ b/PerfectRaid_Buffs.lua @@ -57,8 +57,8 @@ function Buffs:Enable() end function Buffs:DONGLE_PROFILE_CREATED(event, db, addon, svname, profileKey) - if db ~= PerfectRaid.db then return end - self:PrintF(L["Adding defaults to new profile \"%s\""], profileKey) + if svname ~= "PerfectRaidDB" then return end + self:PrintF("Adding default buffs to new profile \"%s\"", profileKey) local buffs = db.profile.buffs for k,v in ipairs(self.defaults) do if not v.disabled then -- 1.7.9.5