Event handlers can't handle functions in a table

Bug #509946 reported by Vadim Peretokin
6
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)
Heiko (koehnheiko)
Changed in mudlet:
importance: Undecided → Wishlist
Changed in mudlet:
status: New → Fix Committed
Revision history for this message
Vadim Peretokin (vperetokin) wrote :

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.

Heiko (koehnheiko)
Changed in mudlet:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.