Forums » Bugs

Lua - Mixed up custom commands

Feb 08, 2023 draugath link
There have been intermittent issues lately where custom commands are getting mixed up.

By this I mean that if `/command1` is bound to `1 ` and `/command2` exists, pressing `1` may execute `/command2` instead. Under these circumstances, often typing out the command exhibits the correct behavior of the command (no mix-up).

There have also been instances where typing the command also results in this behavior.

This issue occurs intermittently with no known trigger, aside from it happening after a `ReloadInterface()`.

I have experienced no issues for weeks, but then, one day, every time I restart the client this happens. Then it will return to normal operation on another day.

At least two other players have experienced the same problem.

I am on Linux. The other two are on Windows.
Feb 09, 2023 raybondo link
Tonight's patch should fix this issue. It relates to plugins unregistering their custom commands and reregistering them after they have been bound to a key. After an interface reload, for example.

All custom commands that plugins register are now automatically unregistered when the interface is reloaded. Plugins should re-register their command(s) when they get reloaded.