From 839609c4c65ba084c0f51701c37a5cd20fd01a8f Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 29 Apr 2022 00:48:28 +0200 Subject: [PATCH] macrotweak: remove showtooltip from sent messages --- modules/macrotweak.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/macrotweak.lua b/modules/macrotweak.lua index ffaafb8e..73bfa5bb 100644 --- a/modules/macrotweak.lua +++ b/modules/macrotweak.lua @@ -18,6 +18,13 @@ pfUI:RegisterModule("macrotweak", "vanilla", function () end) end + -- make sure #showtooltip inside macros won't be sent + local hookSendChatMessage = SendChatMessage + function _G.SendChatMessage(msg, ...) + if msg and string.find(msg, "^#showtooltip ") then return end + hookSendChatMessage(msg, unpack(arg)) + end + -- add /use and /equip to the macro api: -- https://wowwiki.fandom.com/wiki/Making_a_macro -- supported arguments: