docs: add todo to lua.go

pull/61/head
sammyette 2021-06-09 20:43:01 -04:00
parent 646cb93dec
commit edcc1b39f0
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5
1 changed files with 1 additions and 0 deletions

1
lua.go
View File

@ -42,6 +42,7 @@ func LuaInit() {
cmds := commander.New()
// When a command from Lua is added, register it for use
// TODO: maybe dont add command code to a lua table? insstead use a map
cmds.Events.On("commandRegister",
func(cmdName string, cmd *lua.LFunction) {
commands[cmdName] = true