From 3db81be7e3970018c4829fd96f33953deab2ef5f Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Sat, 1 Jul 2017 07:07:48 +1000 Subject: [PATCH] startup: Add warning about running unreleased versions --- oragono.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/oragono.go b/oragono.go index 7b17ffc2..40ceb7c7 100644 --- a/oragono.go +++ b/oragono.go @@ -9,6 +9,7 @@ import ( "fmt" "log" "math/rand" + "strings" "syscall" "time" @@ -124,6 +125,11 @@ Options: logger.Info("startup", fmt.Sprintf("StackImpact profiling started as %s", config.Debug.StackImpact.AppName)) } + // warning if running a non-final version + if strings.Contains(irc.SemVer, "unreleased") { + logger.Warning("startup", "You are currently running an unreleased beta version of Oragono that may be unstable and could corrupt your database.\nIf you are running a production network, please download the latest build from https://oragono.io/downloads.html and run that instead.") + } + server, err := irc.NewServer(configfile, config, logger) if err != nil { logger.Error("startup", fmt.Sprintf("Could not load server: %s", err.Error()))