From 415e007c57961f1fa482e84e1450b8613e652089 Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Tue, 25 Aug 2026 17:48:14 +0200 Subject: [PATCH] Use ClassicAPI modifier state in chat actions --- mods/chat-tweaks.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/chat-tweaks.lua b/mods/chat-tweaks.lua index 77da42d..d80fc82 100644 --- a/mods/chat-tweaks.lua +++ b/mods/chat-tweaks.lua @@ -276,9 +276,9 @@ module.enable = function(self) local _, _, playerLink = string.find(arg1, "(player:.+)") if playerLink then local _, pname = strsplit(":", playerLink) - if IsAltKeyDown() then + if API.IsAltKeyDown and API.IsAltKeyDown() then InviteByName(pname) - elseif IsControlKeyDown() then + elseif API.IsControlKeyDown and API.IsControlKeyDown() then TargetByName(pname, true) else ChatFrame_OnHyperlinkShow(arg1, arg2, arg3)