Skip to content

Commit

Permalink
don't require a config file for defaultconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
slingamn committed Jun 9, 2024
1 parent 6543810 commit 3127353
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 3127353

Please sign in to comment.