mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-25 13:29:27 +01:00
Merge pull request #2168 from slingamn/fix_defaultconfig
don't require a config file for defaultconfig
This commit is contained in:
commit
2aec5e167c
5
ergo.go
5
ergo.go
@ -138,6 +138,9 @@ Options:
|
|||||||
}
|
}
|
||||||
fmt.Println(string(hash))
|
fmt.Println(string(hash))
|
||||||
return
|
return
|
||||||
|
} else if arguments["defaultconfig"].(bool) {
|
||||||
|
fmt.Print(defaultConfig)
|
||||||
|
return
|
||||||
} else if arguments["mkcerts"].(bool) {
|
} else if arguments["mkcerts"].(bool) {
|
||||||
doMkcerts(arguments["--conf"].(string), arguments["--quiet"].(bool))
|
doMkcerts(arguments["--conf"].(string), arguments["--quiet"].(bool))
|
||||||
return
|
return
|
||||||
@ -178,8 +181,6 @@ Options:
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("Error while importing db:", err.Error())
|
log.Fatal("Error while importing db:", err.Error())
|
||||||
}
|
}
|
||||||
} else if arguments["defaultconfig"].(bool) {
|
|
||||||
fmt.Print(defaultConfig)
|
|
||||||
} else if arguments["run"].(bool) {
|
} else if arguments["run"].(bool) {
|
||||||
if !arguments["--quiet"].(bool) {
|
if !arguments["--quiet"].(bool) {
|
||||||
logman.Info("server", fmt.Sprintf("%s starting", irc.Ver))
|
logman.Info("server", fmt.Sprintf("%s starting", irc.Ver))
|
||||||
|
Loading…
Reference in New Issue
Block a user