diff --git a/lua.go b/lua.go index 7151c1c..0827226 100644 --- a/lua.go +++ b/lua.go @@ -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