|
@@ -59,7 +59,7 @@ Options:
|
59
|
59
|
|
60
|
60
|
arguments, _ := docopt.ParseArgs(usage, nil, version)
|
61
|
61
|
|
62
|
|
- // don't require a config file for genpasswd
|
|
62
|
+ // don't require a config file for genpasswd or mksecret
|
63
|
63
|
if arguments["genpasswd"].(bool) {
|
64
|
64
|
var password string
|
65
|
65
|
fd := int(os.Stdin.Fd())
|
|
@@ -85,6 +85,9 @@ Options:
|
85
|
85
|
fmt.Println()
|
86
|
86
|
}
|
87
|
87
|
return
|
|
88
|
+ } else if arguments["mksecret"].(bool) {
|
|
89
|
+ fmt.Println(utils.GenerateSecretKey())
|
|
90
|
+ return
|
88
|
91
|
}
|
89
|
92
|
|
90
|
93
|
configfile := arguments["--conf"].(string)
|
|
@@ -130,8 +133,6 @@ Options:
|
130
|
133
|
log.Fatal(" Could not create certificate:", err.Error())
|
131
|
134
|
}
|
132
|
135
|
}
|
133
|
|
- } else if arguments["mksecret"].(bool) {
|
134
|
|
- fmt.Println(utils.GenerateSecretKey())
|
135
|
136
|
} else if arguments["run"].(bool) {
|
136
|
137
|
if !arguments["--quiet"].(bool) {
|
137
|
138
|
logman.Info("server", fmt.Sprintf("Oragono v%s starting", irc.SemVer))
|