Uh, it's more a whitelist, really

Wobin [05-05-14 - 12:38]
Uh, it's more a whitelist, really
Filename
BorrowerAndLender.lua
diff --git a/BorrowerAndLender.lua b/BorrowerAndLender.lua
index d746aae..7c537b2 100644
--- a/BorrowerAndLender.lua
+++ b/BorrowerAndLender.lua
@@ -40,7 +40,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 settings.blacklist[npc] then return end
+	if settings.whitelist[npc] then return end

 	if not settings.chats[npc] then
 		settings.chats[npc] = {}
@@ -63,14 +63,14 @@ end
 local function AddToBlackList()
 	local name = GetRawUnitName("reticleover")
 	if name  == "" then return end
-	settings.blacklist[name] = true
+	settings.whitelist[name] = true
 	d("Adding " .. name:gsub("%^[%a]+","") .. " to the list of npcs to bypass")
 	EVENT_MANAGER:UnregisterForEvent("BALAdd", EVENT_RETICLE_TARGET_CHANGED)
 end

 local function RemoveFromBlackList()
 	local name = GetRawUnitName("reticleover")
-	settings.blacklist[name] = nil
+	settings.whitelist[name] = nil
 	d(name:gsub("%^[%a]+", "") .. " will now be processed by the addon")
 	EVENT_MANAGER:UnregisterForEvent("BALRemove", EVENT_RETICLE_TARGET_CHANGED)
 end
@@ -83,7 +83,7 @@ local function BorrowerAndLenderLoaded(eventCode, addOnName)

 	local defaults = {
 		chats = {},
-		blacklist = {},
+		whitelist = {},
 		defaultSoundLevel = control.currentChoice or control.value or 75,
 		muteBank = true,
 		muteAmbient = true