Made the saved variables character specific, so it doesn't mute quest npcs across alts. This update will wipe current settings.

Wobin [04-19-14 - 14:35]
Made the saved variables character specific, so it doesn't mute quest npcs across alts. This update will wipe current settings.
Filename
BorrowerAndLender.lua
diff --git a/BorrowerAndLender.lua b/BorrowerAndLender.lua
index 3ef82c8..d1516e1 100644
--- a/BorrowerAndLender.lua
+++ b/BorrowerAndLender.lua
@@ -7,6 +7,11 @@ local inBank
 local control = ZO_OptionsWindow.controlTable[2][9]
 local currentWait = nil
 local settings
+local blacklist = {
+	["Lady Adima^F"] = true,
+	["Count Hosni at-Tura^M"] = true
+	}
+

 function EndsWith(String,End)
    return End=='' or string.sub(String,-string.len(End))==End
@@ -32,7 +37,7 @@ end

 local function FilterNPC(eventCode, channel, npc, chat)
 	if channel ~= CHAT_CHANNEL_MONSTER_SAY and channel ~= CHAT_CHANNEL_MONSTER_YELL then return end
-
+	if blacklist[npc] then return end
 	if not settings.chats[npc] then settings.chats[npc] = {} end
 	if not settings.chats[npc][chat] then settings.chats[npc][chat] = 0 return end

@@ -57,7 +62,7 @@ local function BorrowerAndLenderLoaded(eventCode, addOnName)
 		muteAmbient = true
 	}

-	settings = ZO_SavedVars:NewAccountWide("BorrowerAndLender_Settings", 3, nil, defaults)
+	settings = ZO_SavedVars:New("BorrowerAndLender_Settings", 3, nil, defaults)

 	local panel = LAM:CreateControlPanel("BAL", "Borrower And Lender")

@@ -107,6 +112,7 @@ function BorrowerAndLender:CommandHandler()
 	end

 end
+
 ZO_CreateStringId("SI_BINDING_NAME_TOGGLE_BAL", "Toggle Ambient NPC Ignoring")

 EVENT_MANAGER:RegisterForEvent("BorrowerAndLenderLoaded", EVENT_ADD_ON_LOADED, BorrowerAndLenderLoaded)
\ No newline at end of file