diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-10-22 14:14:40 +0100 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-10-22 14:27:30 +0100 |
| commit | 435ce511962e83a0581accd572dfa4e2c5722ab4 (patch) | |
| tree | 78147b7be694087752d15bd48dcb75b0a1493f9b /data | |
| parent | 57ac7cb4db63dee8e06d696ef6f973c337467040 (diff) | |
Move nickserv/set/message to a new module, kill options:useprivmsg.
Diffstat (limited to 'data')
| -rw-r--r-- | data/anope.example.conf | 13 | ||||
| -rw-r--r-- | data/nickserv.example.conf | 22 |
2 files changed, 16 insertions, 19 deletions
diff --git a/data/anope.example.conf b/data/anope.example.conf index 2123d1274..f365b744a 100644 --- a/data/anope.example.conf +++ b/data/anope.example.conf @@ -430,19 +430,6 @@ options timeoutcheck = 3s /* - * If set, this will allow users to let services send PRIVMSGs to them - * instead of NOTICEs. Also see the "msg" option of nickserv:defaults, - * which also toggles the default communication (PRIVMSG or NOTICE) to - * use for unregistered users. - * - * This is a feature that is against the IRC RFC and should be used ONLY - * if absolutely necessary. - * - * This directive is optional, and not recommended. - */ - #useprivmsg = yes - - /* * 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. diff --git a/data/nickserv.example.conf b/data/nickserv.example.conf index e42a05023..dd84b7a5e 100644 --- a/data/nickserv.example.conf +++ b/data/nickserv.example.conf @@ -106,8 +106,7 @@ module * - memo_mail: Notify user if they have a new memo by mail * - autoop: User will be automatically opped in channels they enter and have access to * - neverop: User can not be added to access lists - * - msg: Messages will be sent as PRIVMSGs instead of NOTICEs, requires options:useprivmsg - * to be enabled as well + * - msg: Messages will be sent as PRIVMSGs instead of NOTICEs * - ns_keep_modes: Enables keepmodes, which retains user modes across sessions * * This directive is optional, if left blank, the options will default to memo_signon, and @@ -512,7 +511,6 @@ command { service = "NickServ"; name = "RESETPASS"; command = "nickserv/resetpas * nickserv/set/email, nickserv/saset/email - Used for setting a users email address. * nickserv/set/keepmodes, nickserv/saset/keepmodes - Configure whether or not services should retain a user's modes across sessions. * nickserv/set/kill, nickserv/saset/kill - Used for configuring nickname protection. - * nickserv/set/message, nickserv/saset/message - Used to configure how services send messages to you. * nickserv/set/neverop, nickserv/saset/neverop - Used to configure whether a user can be added to access lists * nickserv/saset/noexpire - Used for configuring noexpire, which prevents nicks from expiring. * nickserv/set/password, nickserv/saset/password - Used for changing a users password. @@ -547,9 +545,6 @@ command { service = "NickServ"; name = "SASET KEEPMODES"; command = "nickserv/sa command { service = "NickServ"; name = "SET KILL"; command = "nickserv/set/kill"; } command { service = "NickServ"; name = "SASET KILL"; command = "nickserv/saset/kill"; permission = "nickserv/saset/kill"; } -command { service = "NickServ"; name = "SET MESSAGE"; command = "nickserv/set/message"; } -command { service = "NickServ"; name = "SASET MESSAGE"; command = "nickserv/saset/message"; permission = "nickserv/saset/message"; } - command { service = "NickServ"; name = "SET PASSWORD"; command = "nickserv/set/password"; } command { service = "NickServ"; name = "SASET PASSWORD"; command = "nickserv/saset/password"; permission = "nickserv/saset/password"; } @@ -570,6 +565,21 @@ command { service = "NickServ"; name = "SET LANGUAGE"; command = "nickserv/set/l command { service = "NickServ"; name = "SASET LANGUAGE"; command = "nickserv/saset/language"; permission = "nickserv/saset/language"; } /* + * ns_set_message + * + * Provides the command nickserv/set/message and nickserv/saset/message. + * + * Allows users to let services send them PRIVMSGs instead of NOTICEs. + * + * This might cause problems with badly written clients as the IRC RFC + * requires that automatic responses to a PRIVMSG use a NOTICE to avoid + * message loops. Only enable this if you are sure this can not happen. + */ +#module { name = "ns_set_message" } +#command { service = "NickServ"; name = "SET MESSAGE"; command = "nickserv/set/message"; } +#command { service = "NickServ"; name = "SASET MESSAGE"; command = "nickserv/saset/message"; permission = "nickserv/saset/message"; } + +/* * ns_set_misc * * Provides the command nickserv/set/misc. |
