macrotweak: remove showtooltip from sent messages

This commit is contained in:
shagu
2022-04-29 00:48:28 +02:00
parent 38d3d7d7ad
commit 839609c4c6
+7
View File
@@ -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: