Quantcast

Typo fix.

F16Gaming [08-08-12 - 20:03]
Typo fix.
Filename
SummonManager.lua
diff --git a/SummonManager.lua b/SummonManager.lua
index f4f4046..3c33062 100644
--- a/SummonManager.lua
+++ b/SummonManager.lua
@@ -26,11 +26,14 @@ local tostring = tostring
 local CreateFrame = CreateFrame
 local CancelSummon = CancelSummon
 local ConfirmSummon = ConfirmSummon
+local StaticPopup_Hide = StaticPopup_Hide
 local PlayerCanTeleport = PlayerCanTeleport
+local StaticPopup_Visible = StaticPopup_Visible
 local GetSummonConfirmSummoner = GetSummonConfirmSummoner
 local GetSummonConfirmAreaName = GetSummonConfirmAreaName
 local GetSummonConfirmTimeLeft = GetSummonConfirmTimeLeft

+
 local C = Command

 C.SummonManager = {}
@@ -109,7 +112,7 @@ function SM:Announce()
 	LastSummoner = name

 	local channel = "SMART"
-	if not GT:InGroup() then channel = "WHISPER" end
+	if not GT:IsGroup() then channel = "WHISPER" end
 	CM:SendMessage(L("SM_ONSUMMON"):format(area, name, left), channel, name)
 end

@@ -120,6 +123,10 @@ function SM:AcceptSummon()

 	ConfirmSummon()

+	if StaticPopup_Visible("CONFIRM_SUMMON") then
+		StaticPopup_Hide("CONFIRM_SUMMON")
+	end
+
 	return "SM_ACCEPTED", {LastSummoner}
 end

@@ -130,6 +137,10 @@ function SM:DeclineSummon()

 	CancelSummon()

+	if StaticPopup_Visible("CONFIRM_SUMMON") then
+		StaticPopup_Hide("CONFIRM_SUMMON")
+	end
+
 	return "SM_DECLINED", {LastSummoner}
 end