Skip to content

Commit

Permalink
Merge pull request #2168 from slingamn/fix_defaultconfig
Browse files Browse the repository at this point in the history
don't require a config file for defaultconfig
  • Loading branch information
slingamn authored Jun 9, 2024
2 parents 6543810 + 3127353 commit 2aec5e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ergo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 2aec5e1

Please sign in to comment.