error messages for callback.register
![](https://secure.gravatar.com/avatar/cedc4d83943006afe3994fb0a0455f82.jpg?s=120&d=mm&r=g)
Hello, Here a patch for luat-cbk.lua: function callbacks.register(name,func,freeze) if frozen[name] then if trace_callbacks then frozenmessage("registering",name) end return nil, name .. " is frozen" elseif freeze then frozen[name] = (type(freeze) == "string" and freeze) or "registered" return register_callback(name,func) else return register_callback(name,func) end end function callback.register(name,func) -- original if frozen[name] then if trace_callbacks then frozenmessage("registering",name) end return nil, name .. " is frozen" else return register_callback(name,func) end end (Untested...) Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/
participants (1)
-
Peter Münster