Quantcast

Added debug print

Peter Eliasson [08-03-16 - 19:36]
Added debug print
Filename
src/inspect.lua
diff --git a/src/inspect.lua b/src/inspect.lua
index 252ba7b..b5c659b 100644
--- a/src/inspect.lua
+++ b/src/inspect.lua
@@ -142,7 +142,10 @@ end
 function inspect:GroupInSpecT_InspectReady(evt, guid, unit)
 	-- As getting the itemLevel can be slow, we don't perform this
 	-- action for players that are not currently part of our guild.
-	if not addon:IsInMyGuild(unit) then return end
+	if not addon:IsInMyGuild(unit) then
+		self:Debug("inspect:GroupInSpecT_InspectReady", unit, "is not in our guild");
+		return;
+	end

 	self.playerInfo[guid] = self.playerInfo[guid] or {};
 	local playerInfo = self.playerInfo[guid];