|
@@ -32,7 +32,8 @@ func servCmdRequiresBouncerEnabled(config *Config) bool {
|
32
|
32
|
return config.Accounts.Bouncer.Enabled
|
33
|
33
|
}
|
34
|
34
|
|
35
|
|
-var (
|
|
35
|
+const (
|
|
36
|
+ nsPrefix = "NickServ!NickServ@localhost"
|
36
|
37
|
// ZNC's nickserv module will not detect this unless it is:
|
37
|
38
|
// 1. sent with prefix `nickserv`
|
38
|
39
|
// 2. contains the string "identify"
|
|
@@ -267,7 +268,7 @@ information on the settings and their possible values, see HELP SET.`,
|
267
|
268
|
func nsNotice(rb *ResponseBuffer, text string) {
|
268
|
269
|
// XXX i can't figure out how to use OragonoServices[servicename].prefix here
|
269
|
270
|
// without creating a compile-time initialization loop
|
270
|
|
- rb.Add(nil, "NickServ!NickServ@localhost", "NOTICE", rb.target.Nick(), text)
|
|
271
|
+ rb.Add(nil, nsPrefix, "NOTICE", rb.target.Nick(), text)
|
271
|
272
|
}
|
272
|
273
|
|
273
|
274
|
func nsGetHandler(server *Server, client *Client, command string, params []string, rb *ResponseBuffer) {
|