- Make a macro whose contents are:
/tm [exists] 1
- Use it
You'll get this error:
3x ...dOns/Blizzard_ChatFrameBase/Shared/SlashCommands.lua:1382: bad argument #1 to 'find' (string expected, got nil)
[Blizzard_ChatFrameBase/Shared/SlashCommands.lua]:1382: in function '?'
[Blizzard_ChatFrameBase/Shared/ChatFrameEditBox.lua]:259: in function 'ParseText'
[Blizzard_ChatFrameBase/Shared/ChatFrameEditBox.lua]:284: in function 'SendText'
[Blizzard_ChatFrameBase/Shared/MacroExecutionManager.lua]:27: in function <...zzard_ChatFrameBase/Shared/MacroExecutionManager.lua:20>
[C]: in function 'UseAction'
[Blizzard_FrameXML/SecureTemplates.lua]:349: in function 'handler'
[Blizzard_FrameXML/SecureTemplates.lua]:732: in function <Blizzard_FrameXML/SecureTemplates.lua:710>
[Blizzard_FrameXML/SecureTemplates.lua]:746: in function <Blizzard_FrameXML/SecureTemplates.lua:739>
[Blizzard_FrameXML/SecureTemplates.lua]:798: in function 'SecureActionButton_OnClick'
[Blizzard_ActionBar/Shared/ActionButton.lua]:1483: in function 'OnClick'
[Blizzard_ActionBar/Shared/ActionButton.lua]:1546: in function <...ceBlizzard_ActionBar/Shared/ActionButton.lua:1545>
Locals:
msg = "[exists] 4"
marker = nil
target = "target"
This is because SecureCmdOptionParse("[exists] 4") returns nil.
This error didn't happen before the recent hotfix that added the ! behavior to /tm. I don't think there's any proscribed behavior being enabled here by it working -- the sole reason I have that [exists] in my macro is so I don't get a "you can't do that" error when I run that macro if I don't have anything targeted, and I was able to replace it with /stopmacro [noexists] on the previous line.
/tm [exists] 1You'll get this error:
This is because
SecureCmdOptionParse("[exists] 4")returns nil.This error didn't happen before the recent hotfix that added the
!behavior to/tm. I don't think there's any proscribed behavior being enabled here by it working -- the sole reason I have that[exists]in my macro is so I don't get a "you can't do that" error when I run that macro if I don't have anything targeted, and I was able to replace it with/stopmacro [noexists]on the previous line.