From bda1a39313e1db990e178e28fd2aabdaf3223645 Mon Sep 17 00:00:00 2001 From: F16Gaming Date: Wed, 8 Aug 2012 22:03:48 +0200 Subject: [PATCH] Typo fix. --- SummonManager.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 -- 1.7.9.5