XIV_Databar Continued

XIV_Databar Continued

9.5k Downloads

[Bug] Underscore Throwaway Value from other addons is being treated as an Input

RealoFoxtrot opened this issue · 4 comments

commented

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:

  1. Load the game wiht XIV databar working
  2. type /script SendChatMessage("Test","SAY",_,_)
  3. 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 _

commented

Sweet, thank you again for the report and enjoy !

commented

Seems like it's fixed it!

commented

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 !

commented

Heya, after such a long wait, version 3.1 is out and should fix that issue !

Let me know if you still have a problem !

Thank you again for the feedback and for helping me maintain XIV Databar Continued and enjoy !