diff options
author | Sadie Powell <sadie@witchery.services> | 2025-05-12 12:40:45 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-05-12 14:00:47 +0100 |
commit | 1daafff79decc8bb1856006e7248c8da49328a19 (patch) | |
tree | f707bba600bb0338c745d5505e9934f358ec1f21 /data | |
parent | 3dd20975aa3117ae30d76090182386db77b4c288 (diff) |
Merge various email modules into one module.
In the future this will become the basis of the email contact
module and will encapsulate everything relating to email but for
now its mostly kept as-is.
Diffstat (limited to 'data')
-rw-r--r-- | data/nickserv.example.conf | 58 |
1 files changed, 27 insertions, 31 deletions
diff --git a/data/nickserv.example.conf b/data/nickserv.example.conf index 424ca55e4..6aa509773 100644 --- a/data/nickserv.example.conf +++ b/data/nickserv.example.conf @@ -344,14 +344,37 @@ module { name = "ns_drop" } command { service = "NickServ"; name = "DROP"; command = "nickserv/drop"; } /* - * ns_getemail + * ns_email * - * Provides the command nickserv/getemail. + * Provides various functionality relating to email addresses. This includes the + * following commands: * - * Used for getting registered accounts by searching for emails. + * - nickserv/getemail: Used for getting accounts by searching for emails. + * - nickserv/set/email, nickserv/saset/email: Used for setting an account's + * emailvaddress. */ -module { name = "ns_getemail" } +module +{ + name = "ns_email" + + /* + * The limit to how many registered accounts can use the same email address. + * If set to 0 or left commented there will be no limit enforced when + * registering new accounts or using /msg NickServ SET EMAIL. + */ + #maxemails = 1 + + /* + * Whether to attempt to remove aliases when counting email addresses. This + * means removing dots (.) and anything after a plus (+) in the user part of + * the address, e.g. foo.bar+baz@example.com -> foobar@example.com. + */ + #remove_aliases = yes +} + command { service = "NickServ"; name = "GETEMAIL"; command = "nickserv/getemail"; permission = "nickserv/getemail"; group = "nickserv/admin"; } +command { service = "NickServ"; name = "SET EMAIL"; command = "nickserv/set/email"; } +command { service = "NickServ"; name = "SASET EMAIL"; command = "nickserv/saset/email"; permission = "nickserv/saset/email"; } /* * ns_group @@ -557,7 +580,6 @@ module * nickserv/set, nickserv/saset - Dummy help wrappers for the SET and SASET commands. * nickserv/set/autoop, nickserv/saset/autoop - Determines whether or not modes are automatically set users when joining a channel. * nickserv/set/display, nickserv/saset/display - Used for setting a users display name. - * 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/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. @@ -574,9 +596,6 @@ command { service = "NickServ"; name = "SASET AUTOOP"; command = "nickserv/saset command { service = "NickServ"; name = "SET DISPLAY"; command = "nickserv/set/display"; } command { service = "NickServ"; name = "SASET DISPLAY"; command = "nickserv/saset/display"; permission = "nickserv/saset/display"; } -command { service = "NickServ"; name = "SET EMAIL"; command = "nickserv/set/email"; } -command { service = "NickServ"; name = "SASET EMAIL"; command = "nickserv/saset/email"; permission = "nickserv/saset/email"; } - command { service = "NickServ"; name = "SET PASSWORD"; command = "nickserv/set/password"; } command { service = "NickServ"; name = "SASET PASSWORD"; command = "nickserv/saset/password"; permission = "nickserv/saset/password"; } @@ -703,26 +722,3 @@ command { service = "NickServ"; name = "UNSUSPEND"; command = "nickserv/unsuspen */ module { name = "ns_update" } command { service = "NickServ"; name = "UPDATE"; command = "nickserv/update"; } - - -/* - * Extra NickServ related modules. - */ - -/* - * ns_maxemail - * - * Limits how many times the same email address may be used in Anope - * to register accounts. - */ -#module -{ - name = "ns_maxemail" - - /* - * The limit to how many registered nicks can use the same email address. If set to 0 or left - * commented, there will be no limit enforced when registering new accounts or using - * /msg NickServ SET EMAIL. - */ - maxemails = 1 -} |