mirror of https://github.com/Hilbis/Hilbish
fix: define deregister function in commander module
parent
26eee56c8b
commit
a413b28f2a
|
@ -18,6 +18,7 @@ func New() Commander {
|
||||||
func (c *Commander) Loader(L *lua.LState) int {
|
func (c *Commander) Loader(L *lua.LState) int {
|
||||||
var exports = map[string]lua.LGFunction{
|
var exports = map[string]lua.LGFunction{
|
||||||
"register": c.register,
|
"register": c.register,
|
||||||
|
"deregister": c.deregister,
|
||||||
}
|
}
|
||||||
mod := L.SetFuncs(L.NewTable(), exports)
|
mod := L.SetFuncs(L.NewTable(), exports)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue