I just whipped up a small test, and it appears that automating the acceptance of this (or perhaps all?) spell confirmation prompts causes taint. I assume it is because accepting the prompt executes a spell immediately, and spell casting via Lua is certainly restricted to Blizzard.
I tried using the static popup's OnClick function, the "Okay" button's Click method, and AcceptSpellConfirmationPrompt.
Lua Code:
local eventHandler = CreateFrame("Frame")
eventHandler:RegisterEvent("SPELL_CONFIRMATION_PROMPT")
eventHandler:SetScript("OnEvent", function (self, event, spellID)
-- The spell ID is 161736.
for i = 1, STATICPOPUP_NUMDIALOGS do
local frame = _G["StaticPopup"..i]
if (frame.which == "SPELL_CONFIRMATION_PROMPT") and (frame.data == spellID) then
-- StaticPopup_OnClick(frame, 1)
-- _G["StaticPopup"..i.."Button1"]:Click()
-- frame.Button1:Click()
-- AcceptSpellConfirmationPrompt(spellID)
end
end
end)