diff --git a/config.go b/config.go index 0d8f02e..af34cc0 100644 --- a/config.go +++ b/config.go @@ -12,6 +12,7 @@ type Server struct { url string username string token string + primary bool } // Configuration holds data retrieved from a Lua script. @@ -19,7 +20,7 @@ type Configuration struct { servers map[string]*Server } -// parseText parses a text value from the configuration file. +// getStringFromTable parses a text value from the configuration file. func getStringFromTable(L *lua.LState, lobj lua.LValue, key string, out *string) error { lv := L.GetTable(lobj, lua.LString(key)) if text, ok := lv.(lua.LString); ok {