Sadie Powell
34896cefe9
Misc cleanup of ns_sasl and sasl.h.
2025-03-03 23:57:12 +00:00
Sadie Powell
224caf32c7
Rename sasl to ns_sasl, move to nickserv.example.conf.
2025-03-03 22:02:48 +00:00
Sadie Powell
f9911dde52
Return references instead of pointers from the config system.
...
We used to return NULL from these methods but now we return an empty
block so this can never actually be null now.
2025-03-02 15:27:47 +00:00
Sadie Powell
34a539ba78
Fix detecting whether translations are disabled in ns_set_language.
2025-02-23 11:44:52 +00:00
Sadie Powell
0c193f8149
Store the source address in the identify request.
2025-02-20 19:49:01 +00:00
Sadie Powell
e3abae44a7
Make email confirmation a bit smarter.
2025-02-11 11:57:34 +00:00
Sadie Powell
0a82366a6b
Merge branch '2.0' into 2.1.
2025-01-14 13:41:19 +00:00
Sadie Powell
9d165f13e7
Allow skipping user modes in keepmodes.
2025-01-13 15:35:13 +00:00
Sadie Powell
3582bc0f58
Move keepmodes to its own module.
2025-01-13 15:10:31 +00:00
Sadie Powell
e42b4c21b7
Use the Module * overload of GetModule() in the nickserv module.
2024-11-25 14:43:23 +00:00
Sadie Powell
ebea728957
Fix pluralising languages which use the same plural for 0 as 1.
2024-11-25 01:20:03 +00:00
Sadie Powell
233a5bf4cd
Add a missing override keyword.
2024-11-25 00:20:25 +00:00
Sadie Powell
7019b27e59
Rework how guest nicks work.
...
- Use the config setting as a string template instead of as a prefix.
- Allow users of IRCds that have UIDs to use that as the guest nick.
- Fall back to a UID before killing if a guest nick can not be found.
2024-11-25 00:08:30 +00:00
Sadie Powell
faf0ad5f35
Improve language selection.
...
- Allow selecting languages using an abbreviated language code
(e.g. en for en_US.UTF-8).
- Preprocess the language list on load as it never changes. This
allows us to stop special casing the English language.
2024-11-22 13:06:58 +00:00
Sadie Powell
687bcaa83f
Add a plural form overload of CommandSource::Reply.
2024-11-19 17:10:29 +00:00
Sadie Powell
c55d8450a4
Move the set option to its own module.
...
This is the first step of rewriting nickname protection.
2024-11-18 12:40:24 +00:00
Sadie Powell
309c342b86
Use the remaining wait time in the registration delay message.
...
Closes #452 .
2024-11-13 11:56:50 +00:00
Sadie Powell
4de59d61d8
Use durations instead of seconds in waiting messages.
2024-11-13 11:56:11 +00:00
Sadie Powell
df1c6176b3
Merge branch '2.0' into 2.1.
2024-11-11 17:13:01 +00:00
Sadie Powell
f1751dcb21
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.
2024-10-22 16:29:22 +01:00
Sadie Powell
435ce51196
Move nickserv/set/message to a new module, kill options:useprivmsg.
2024-10-22 14:27:30 +01:00
Sadie Powell
9a44b74186
Let the user know about their cert being auto-added to their account.
2024-10-11 18:55:22 +01:00
Sadie Powell
2f74513246
Change User::SetModesInternal to take a split mode change.
2024-10-02 23:54:36 +01:00
Sadie Powell
f9e4ca4d06
Raise the default nickname expiry time to one year.
2024-10-01 11:31:50 +01:00
Sadie Powell
b4e673b2f4
Refactor ns_getemail slightly.
2024-08-29 13:21:18 +01:00
Sadie Powell
58a78e9aa5
Allow server admins to require that a display nick drops last.
...
Closes #348 .
2024-08-29 13:14:39 +01:00
Sadie Powell
378ae21ac7
Add account identifier to nickserv/info output.
2024-08-18 01:19:39 +01:00
Sadie Powell
528b5938ec
Automatically determine SQL column type from the field.
...
Also add more column types to ensure we are storing data in the
best format in the database.
2024-08-14 05:47:55 +01:00
Sadie Powell
8a65f116b6
Merge branch '2.0' into 2.1.
2024-06-23 13:52:46 +01:00
Sadie Powell
8c0edef714
Split nickserv/{sa,}set/language out to its own module.
2024-06-22 17:46:42 +01:00
Sadie Powell
f2b66278aa
Fix a string that should be marked as translatable in ns_info.
2024-06-12 17:53:15 +01:00
Sadie Powell
24375d53e6
Add support for looking up account information from a nick.
...
Closes #407 .
2024-06-12 17:46:07 +01:00
Sadie Powell
8a1bffba9b
Fix a crash in ns_cert.
2024-06-10 11:16:05 +01:00
Sadie Powell
e71a9e2894
Avoid NickAlias lookups by storing a pointer in the NickCore.
2024-06-03 16:04:53 +01:00
Sadie Powell
18e9e12261
Fix an iterator invalidation issue in cs_set and ns_set.
2024-05-18 16:35:35 +01:00
Sadie Powell
4008e64f26
Store when the account name was registered in the NickCore.
2024-05-11 17:40:38 +01:00
Sadie Powell
e9243c3fde
Add the ReplaceCert method to CertService.
2024-05-01 21:20:31 +01:00
Sadie Powell
be3822523b
Automatically add client certificates to the cert list on register.
2024-05-01 17:23:10 +01:00
Sadie Powell
7c93007aa6
Avoid duplicate entries in ReplaceCert.
2024-04-14 12:23:19 +01:00
Sadie Powell
260539e987
Add more documentation for overriding confirmation codes.
2024-04-07 15:52:24 +01:00
Sadie Powell
4603cd467b
Add an operator privilege to allow overriding drop codes.
...
Closes #392
2024-04-05 14:14:10 +01:00
Sadie Powell
753119c4a1
Use consistent casing when referring to vhosts and vidents.
2024-03-15 12:42:13 +00:00
Sadie Powell
ad86535024
Consistently use READ_ONLY_MODE everywhere.
2024-03-15 12:09:58 +00:00
Sadie Powell
4e9d183523
Restore some functionality that was removed in an earlier commit.
2024-03-14 23:10:53 +00:00
Sadie Powell
22ba54b00d
Show the full command in CONFIRM_DROP.
2024-03-12 19:24:31 +00:00
Sadie Powell
b8cd00b412
Merge branch '2.0' into 2.1.
2024-03-12 16:50:30 +00:00
Sadie Powell
06add0e5fc
Simplify limit extraction code.
2024-03-12 12:24:02 +00:00
Sadie Powell
02355546ff
Reject registrations and password changes if password encryption fails.
2024-03-11 19:39:47 +00:00
Sadie Powell
6ad3430ac4
Clean up some dead code in ns_register.
2024-03-11 19:30:57 +00:00
Sadie Powell
29e7674e56
Replace convertTo/stringify with non-throwing alternatives.
...
Having these throw is terrible for ergonomics and there are loads
of places where the exception was either silently ignored or not
handled at all. Having a function which returns an optional and
another that returns a default works a lot better imo.
2024-03-11 19:17:29 +00:00