|
@@ -18,12 +18,12 @@ func servCmdRequiresAuthEnabled(config *Config) bool {
|
18
|
18
|
return config.Accounts.AuthenticationEnabled
|
19
|
19
|
}
|
20
|
20
|
|
21
|
|
-func nsGroupEnabled(config *Config) bool {
|
|
21
|
+func servCmdRequiresNickRes(config *Config) bool {
|
22
|
22
|
return config.Accounts.AuthenticationEnabled && config.Accounts.NickReservation.Enabled
|
23
|
23
|
}
|
24
|
24
|
|
25
|
25
|
func nsEnforceEnabled(config *Config) bool {
|
26
|
|
- return config.Accounts.NickReservation.Enabled && config.Accounts.NickReservation.AllowCustomEnforcement
|
|
26
|
+ return servCmdRequiresNickRes(config) && config.Accounts.NickReservation.AllowCustomEnforcement
|
27
|
27
|
}
|
28
|
28
|
|
29
|
29
|
const nickservHelp = `NickServ lets you register and login to an account.
|
|
@@ -42,7 +42,7 @@ var (
|
42
|
42
|
|
43
|
43
|
DROP de-links the given (or your current) nickname from your user account.`,
|
44
|
44
|
helpShort: `$bDROP$b de-links your current (or the given) nickname from your user account.`,
|
45
|
|
- enabled: servCmdRequiresAccreg,
|
|
45
|
+ enabled: servCmdRequiresNickRes,
|
46
|
46
|
authRequired: true,
|
47
|
47
|
},
|
48
|
48
|
"enforce": {
|
|
@@ -78,7 +78,7 @@ same user account, letting you reclaim your nickname.`,
|
78
|
78
|
GROUP links your current nickname with your logged-in account, preventing other
|
79
|
79
|
users from changing to it (or forcing them to rename).`,
|
80
|
80
|
helpShort: `$bGROUP$b links your current nickname to your user account.`,
|
81
|
|
- enabled: nsGroupEnabled,
|
|
81
|
+ enabled: servCmdRequiresNickRes,
|
82
|
82
|
authRequired: true,
|
83
|
83
|
},
|
84
|
84
|
"identify": {
|
|
@@ -119,7 +119,7 @@ certificate (and you will need to use that certificate to login in future).`,
|
119
|
119
|
SADROP forcibly de-links the given nickname from the attached user account.`,
|
120
|
120
|
helpShort: `$bSADROP$b forcibly de-links the given nickname from its user account.`,
|
121
|
121
|
capabs: []string{"accreg"},
|
122
|
|
- enabled: servCmdRequiresAccreg,
|
|
122
|
+ enabled: servCmdRequiresNickRes,
|
123
|
123
|
minParams: 1,
|
124
|
124
|
},
|
125
|
125
|
"saregister": {
|
|
@@ -130,7 +130,7 @@ SAREGISTER registers an account on someone else's behalf.
|
130
|
130
|
This is for use in configurations that require SASL for all connections;
|
131
|
131
|
an administrator can set use this command to set up user accounts.`,
|
132
|
132
|
helpShort: `$bSAREGISTER$b registers an account on someone else's behalf.`,
|
133
|
|
- enabled: servCmdRequiresAccreg,
|
|
133
|
+ enabled: servCmdRequiresAuthEnabled,
|
134
|
134
|
capabs: []string{"accreg"},
|
135
|
135
|
minParams: 2,
|
136
|
136
|
},
|
|
@@ -143,7 +143,7 @@ IRC operator with the correct permissions). To prevent accidental
|
143
|
143
|
unregistrations, a verification code is required; invoking the command without
|
144
|
144
|
a code will display the necessary code.`,
|
145
|
145
|
helpShort: `$bUNREGISTER$b lets you delete your user account.`,
|
146
|
|
- enabled: servCmdRequiresAccreg,
|
|
146
|
+ enabled: servCmdRequiresAuthEnabled,
|
147
|
147
|
minParams: 1,
|
148
|
148
|
},
|
149
|
149
|
"verify": {
|