[Bug] Underscore Throwaway Value from other addons is being treated as an Input
RealoFoxtrot opened this issue · 4 comments
Describe the bug
The short description:
I have found that XIV is causing _ to be treated as an input instead of a throwaway value.
At least this has happened when using the command SendChatMessage, with _ being used to ignore the language input
To Reproduce
Steps to reproduce the behavior:
- Load the game wiht XIV databar working
- type
/script SendChatMessage("Test","SAY",_,_)
- View message "You Cannot Speak That Language"
Expected behavior
What should happen is _ should be treated as a throwaway character and ignored, sending the message anyhow.
Lua error logs
No LUA error
Screenshots
If applicable, add screenshots to help explain your problem.
WoW Version (please complete the following information)
- WoW Flavour: Retail
- Version 11.0.2 (56421)
XIV_Databar Continued Version
Which version of XIV_Databar Continued are you using ?
3.0.3
Additional context
Add any other context about the problem here.
I am sure this is XIV as I have disabled all addons except XIV and then turned it off and it is definitely XIV that is causing this behavior.
I have no clue what could be causing it though.
However, the solution for addon/Scripters is to use nil instead of _
Heya, interesting feedback, I identified the bug and that is caused by variables reassignments like
self.cook.name, self.cook.defIcon, self.cook.lvl, self.cook.maxLvl, _, _, self.cook.id, _ = GetProfessionInfo(self.cook.idx)
It is happening in multiple modules, I identified all of the faulty reassignments and this should be fixed in the next release !
Thank you for letting me know about that strange interaction !