diff --git a/cmd/openttd_multitool/openttd_multitool.go b/cmd/openttd_multitool/openttd_multitool.go index 040aa45..9f12ac1 100644 --- a/cmd/openttd_multitool/openttd_multitool.go +++ b/cmd/openttd_multitool/openttd_multitool.go @@ -4,7 +4,7 @@ import ( "github.com/tardisx/openttd-admin/pkg" "flag" "strings" - // "fmt" + "os" ) @@ -66,6 +66,11 @@ func main() { flag.IntVar(&port, "port", 3977, "The port number of the admin interface (default is 3977)") flag.Parse() + if password == "" { + println("ERROR: You must supply a password") + os.Exit(1) + } + server := admin.OpenTTDServer{} for _, value := range daily {