Quantcast

Create branch Mists of Pandaria

Erik L. Vonderscheer [07-08-12 - 09:01]
Create branch Mists of Pandaria
Change version output
Fix GetNumPartyMembers() -> GetNumSubgroupMembers()
Fix GetNumRaidMembers() -> GetNumGroupMembers()
Filename
TradeFilter3.lua
diff --git a/TradeFilter3.lua b/TradeFilter3.lua
index fedddaf..e8579a7 100644
--- a/TradeFilter3.lua
+++ b/TradeFilter3.lua
@@ -64,7 +64,7 @@ local msgsBlackFiltered = 0

 local MAJOR_VERSION = GetAddOnMetadata("TradeFilter3", "Version")
 if (len(MAJOR_VERSION)<=6) then
-	TF3.version = sub(MAJOR_VERSION, 0, 6)
+	TF3.version = sub(MAJOR_VERSION, 0, 8)
 else
 	TF3.version = MAJOR_VERSION .. " DEV"
 end
@@ -255,8 +255,8 @@ end
 --[[ Party Functions ]]--
 function TF3:IsParty(userID)
 	if not (TF3.db.profile.exmptparty) then return false end
-	local numPartyMembers = GetNumPartyMembers()
-	local numRaidMembers = GetNumRaidMembers()
+	local numPartyMembers = GetNumSubgroupMembers()
+	local numRaidMembers = GetNumGroupMembers()
   if (numRaidMembers > 0) then
     for i=1, numRaidMembers, 1 do
       local partymember = UnitName("raid"..i)