diff options
author | Sadie Powell <sadie@witchery.services> | 2024-10-22 16:16:32 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-10-22 16:29:22 +0100 |
commit | f1751dcb213b953ff362eda3276e210258a7cdb2 (patch) | |
tree | fab818dd75eaafee74d0b80e9d3da3e28aa0244c /data | |
parent | 8b026135492c13ae030b27cb6ec6c5b09131c0bd (diff) |
Replace usestrictprivmsg with something actually useful.
Every IRC server we support (other than Bahamut which is probably
on the chopping bock) uses UIDs so this setting does nothing.
Instead, allow configuring a server-side alias for each service
and use that when servicealias is enabled.
Diffstat (limited to 'data')
-rw-r--r-- | data/anope.example.conf | 10 | ||||
-rw-r--r-- | data/botserv.example.conf | 11 | ||||
-rw-r--r-- | data/chanserv.example.conf | 11 | ||||
-rw-r--r-- | data/global.example.conf | 11 | ||||
-rw-r--r-- | data/hostserv.example.conf | 11 | ||||
-rw-r--r-- | data/memoserv.example.conf | 11 | ||||
-rw-r--r-- | data/nickserv.example.conf | 11 | ||||
-rw-r--r-- | data/operserv.example.conf | 11 |
8 files changed, 81 insertions, 6 deletions
diff --git a/data/anope.example.conf b/data/anope.example.conf index f365b744a..d9a35050f 100644 --- a/data/anope.example.conf +++ b/data/anope.example.conf @@ -430,13 +430,11 @@ options timeoutcheck = 3s /* - * If set, will force services to only respond to PRIVMSGs addresses to - * Nick@ServerName - e.g. NickServ@example.com. This should be used in - * conjunction with IRCd aliases. This directive is optional. - * - * This option will have no effect on some IRCds, such as TS6 IRCds. + * If set Anope will tell users to use a server-side alias for messaging + * services instead of /msg. The alias for each service defaults to the + * bot name but can be configured in the service block. */ - #usestrictprivmsg = yes + #servicealias = yes /* * If set, Anope will only show /stats o to IRC Operators. This directive diff --git a/data/botserv.example.conf b/data/botserv.example.conf index 2357c1e93..8e7346bd1 100644 --- a/data/botserv.example.conf +++ b/data/botserv.example.conf @@ -59,6 +59,17 @@ service * Prefixes may be given to the channels in the form of mode characters or prefix symbols. */ #channels = "@#services,#mychan" + + /* + * The server alias that can be used to securely message this service. If + * your IRC server does not have an alias for this service you can set this + * to an empty string to tell users to use /msg instead. + * + * This setting is ignored when options:servicealias is disabled. + * + * Defaults to the nick of the service if not set. + */ + #alias = "BS" } /* diff --git a/data/chanserv.example.conf b/data/chanserv.example.conf index 8858453e2..c7506b878 100644 --- a/data/chanserv.example.conf +++ b/data/chanserv.example.conf @@ -49,6 +49,17 @@ service * Prefixes may be given to the channels in the form of mode characters or prefix symbols. */ #channels = "@#services,#mychan" + + /* + * The server alias that can be used to securely message this service. If + * your IRC server does not have an alias for this service you can set this + * to an empty string to tell users to use /msg instead. + * + * This setting is ignored when options:servicealias is disabled. + * + * Defaults to the nick of the service if not set. + */ + #alias = "CS" } /* diff --git a/data/global.example.conf b/data/global.example.conf index 5b99f0178..15b6347e6 100644 --- a/data/global.example.conf +++ b/data/global.example.conf @@ -49,6 +49,17 @@ service * Prefixes may be given to the channels in the form of mode characters or prefix symbols. */ #channels = "@#services,#mychan" + + /* + * The server alias that can be used to securely message this service. If + * your IRC server does not have an alias for this service you can set this + * to an empty string to tell users to use /msg instead. + * + * This setting is ignored when options:servicealias is disabled. + * + * Defaults to the nick of the service if not set. + */ + #alias = "GL" } /* diff --git a/data/hostserv.example.conf b/data/hostserv.example.conf index 0f74ba467..e1275cc7a 100644 --- a/data/hostserv.example.conf +++ b/data/hostserv.example.conf @@ -49,6 +49,17 @@ service * Prefixes may be given to the channels in the form of mode characters or prefix symbols. */ #channels = "@#services,#mychan" + + /* + * The server alias that can be used to securely message this service. If + * your IRC server does not have an alias for this service you can set this + * to an empty string to tell users to use /msg instead. + * + * This setting is ignored when options:servicealias is disabled. + * + * Defaults to the nick of the service if not set. + */ + #alias = "HS" } /* diff --git a/data/memoserv.example.conf b/data/memoserv.example.conf index 0d1aebdb2..e05e1c14a 100644 --- a/data/memoserv.example.conf +++ b/data/memoserv.example.conf @@ -49,6 +49,17 @@ service * Prefixes may be given to the channels in the form of mode characters or prefix symbols. */ #channels = "@#services,#mychan" + + /* + * The server alias that can be used to securely message this service. If + * your IRC server does not have an alias for this service you can set this + * to an empty string to tell users to use /msg instead. + * + * This setting is ignored when options:servicealias is disabled. + * + * Defaults to the nick of the service if not set. + */ + #alias = "MS" } /* diff --git a/data/nickserv.example.conf b/data/nickserv.example.conf index dd84b7a5e..001137feb 100644 --- a/data/nickserv.example.conf +++ b/data/nickserv.example.conf @@ -49,6 +49,17 @@ service * Prefixes may be given to the channels in the form of mode characters or prefix symbols. */ #channels = "@#services,#mychan" + + /* + * The server alias that can be used to securely message this service. If + * your IRC server does not have an alias for this service you can set this + * to an empty string to tell users to use /msg instead. + * + * This setting is ignored when options:servicealias is disabled. + * + * Defaults to the nick of the service if not set. + */ + #alias = "NS" } /* diff --git a/data/operserv.example.conf b/data/operserv.example.conf index 77c969309..a320bd824 100644 --- a/data/operserv.example.conf +++ b/data/operserv.example.conf @@ -49,6 +49,17 @@ service * Prefixes may be given to the channels in the form of mode characters or prefix symbols. */ #channels = "@#services,#mychan" + + /* + * The server alias that can be used to securely message this service. If + * your IRC server does not have an alias for this service you can set this + * to an empty string to tell users to use /msg instead. + * + * This setting is ignored when options:servicealias is disabled. + * + * Defaults to the nick of the service if not set. + */ + #alias = "OS" } /* |