Quantcast

Should no longer announce Ready Check when player issued it.

F16Gaming [07-10-12 - 12:10]
Should no longer announce Ready Check when player issued it.
Filename
Events.lua
diff --git a/Events.lua b/Events.lua
index cdbcac1..b033745 100644
--- a/Events.lua
+++ b/Events.lua
@@ -22,6 +22,7 @@ local select = select
 local tostring = tostring

 -- API Upvalues
+local UnitName = UnitName
 local StaticPopup_Hide = StaticPopup_Hide
 local GetNumGuildMembers = GetNumGuildMembers
 local StaticPopup_Visible = StaticPopup_Visible
@@ -78,8 +79,9 @@ end

 function C.Events.READY_CHECK(self, ...)
 	if C.Data.ReadyCheckRunning then return end
-	C.Data.ReadyCheckRunning = true
 	local name = tostring(select(1, ...))
+	if name == UnitName("player") then return end
+	C.Data.ReadyCheckRunning = true
 	CM:SendMessage(L("E_READYCHECK"):format(name), "SMART")
 end