From 3127353b840636ff0c5739ed9184bd1869540dca Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Sun, 9 Jun 2024 03:20:33 -0400 Subject: [PATCH] don't require a config file for defaultconfig --- ergo.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ergo.go b/ergo.go index ada69f7f..500c5cf2 100644 --- a/ergo.go +++ b/ergo.go @@ -138,6 +138,9 @@ Options: } fmt.Println(string(hash)) return + } else if arguments["defaultconfig"].(bool) { + fmt.Print(defaultConfig) + return } else if arguments["mkcerts"].(bool) { doMkcerts(arguments["--conf"].(string), arguments["--quiet"].(bool)) return @@ -178,8 +181,6 @@ Options: if err != nil { log.Fatal("Error while importing db:", err.Error()) } - } else if arguments["defaultconfig"].(bool) { - fmt.Print(defaultConfig) } else if arguments["run"].(bool) { if !arguments["--quiet"].(bool) { logman.Info("server", fmt.Sprintf("%s starting", irc.Ver))