From 43f90751d6134e34483f80eda09bfd05e080f0f2 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Sat, 31 Oct 2026 13:45:35 -0500 Subject: [PATCH] Clear AFK when a holiday scene is clicked --- modules/easteregg.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/easteregg.lua b/modules/easteregg.lua index ff4c1ec0..86355e96 100644 --- a/modules/easteregg.lua +++ b/modules/easteregg.lua @@ -2,7 +2,7 @@ pfUI:RegisterModule("easteregg", function () local today = date("%m%d") -- A full screen scene for the time the player is AFK on a holiday. The - -- night fades in, and a click or coming back hides it again. + -- night fades in, and a click or coming back clears AFK and hides it. local function CreateScene(name, greeting, info) local scene = CreateFrame("Button", name, WorldFrame) scene:SetFrameStrata("DIALOG") @@ -46,7 +46,9 @@ pfUI:RegisterModule("easteregg", function () this:StopAnimating() end) + -- /afk toggles, so send it only while AFK is still set scene:SetScript("OnClick", function() + if IsChatAFK() then SendChatMessage("", "AFK") end this:Hide() end)