Event handlers can't handle functions in a table
Bug #509946 reported by
Vadim Peretokin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mudlet |
Fix Released
|
Wishlist
|
Vadim Peretokin |
Bug Description
If you have a function that is stored in a table (perfectly legal in Lua where functions are variables), then the script handler will fail to call it.
Changed in mudlet: | |
assignee: | nobody → Vadim Peretokin (vperetokin) |
Changed in mudlet: | |
importance: | Undecided → Wishlist |
Changed in mudlet: | |
status: | New → Fix Committed |
Changed in mudlet: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Attached is a fix which makes it 'simply work'.
You can use a.b.c, or a["b"] or whatever else you'd like. If the function does not exist, it is reported to the errors view with the familiar Lua error.