diff --git a/config.gcfg b/config.gcfg index d0cf04c..a01802c 100644 --- a/config.gcfg +++ b/config.gcfg @@ -1,6 +1,7 @@ [nethacklauncher] loglevel = "debug" serverdisplay = "unixvoid.com underground nethack server" + nethackversion = "3.6.0" recordlocation = "record" reclistlocation = "reclist" bootstrapdelay = 1 diff --git a/nethack-launcher.go b/nethack-launcher.go index ce7bbf1..fff37aa 100644 --- a/nethack-launcher.go +++ b/nethack-launcher.go @@ -20,6 +20,7 @@ type Config struct { NethackLauncher struct { Loglevel string ServerDisplay string + NethackVersion string RecordLocation string ReclistLocation string BootstrapDelay time.Duration @@ -163,7 +164,7 @@ func printUserScreen(redisClient *redis.Client, username string) string { println("") println(" l) Logout") println(" w) Watch games in progress") - println(" p) Play NetHack 3.6.0") + fmt.Printf(" p) Play NetHack %s\n", config.NethackLauncher.NethackVersion) println(" q) Quit") println("") fmt.Printf(">> ")