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
Sadie Powell
39d288f99f
Rename hash_map to unordered_map to match the underlying container.
2024-03-09 22:22:56 +00:00
Sadie Powell
16700b0e30
Remove a guarantee that may not necessarily be correct.
2024-03-07 23:09:25 +00:00
Sadie Powell
4e04a11995
Consistently use email instead of e-mail.
2024-03-07 22:52:41 +00:00
Sadie Powell
464e6b8010
Use the C++11 random number generator instead of rand().
...
This is safer, faster, and doesn't require seeding.
2024-03-07 22:52:41 +00:00
Sadie Powell
3272c1bbc6
Require new accounts to have email addresses.
2024-03-07 22:25:32 +00:00
Sadie Powell
bb94f286f5
Also use drop confirmation codes for nicknames.
2024-03-07 21:18:06 +00:00
Sadie Powell
1a8ae513b4
Add NickAlias::GetVhostMask for getting the vident@vhost.
2024-03-04 11:09:50 +00:00
Sadie Powell
579af3c442
Rip out ns_access and related code.
...
This is wildly insecure and has been disabled by default for at
least a decade.
2024-02-29 16:14:15 +00:00
Sadie Powell
b5b3c74477
Make functions that don't use this static.
2024-02-27 10:48:55 +00:00
Sadie Powell
7640fad30c
Simplify several boolean expressions.
2024-02-27 10:19:44 +00:00
Sadie Powell
c6cb4ba159
Fix some coding style issues.
2024-02-26 15:34:17 +00:00
Sadie Powell
c4e9c0bf85
If the IRCd sends a field limit then use it over that of the config.
2024-02-22 17:05:30 +00:00
Sadie Powell
9502567453
Fix the NickServ help message showing a wrong min password length.
...
Closes #357 .
2024-02-22 11:01:41 +00:00
Sadie Powell
14472c5a95
Increase minpasslen and maxpasslen slightly.
2024-02-22 10:46:30 +00:00
Sadie Powell
89594d4557
Add a method to the ns_cert API for replacing a certificate.
...
This will be used for upgrading certificate fingerprints when the
InspIRCd 1206 protocol support is added.
2024-02-21 13:30:16 +00:00
Sadie Powell
1fb77e414d
Increase the size of the random codes in ns_register and ns_set.
2024-02-19 22:31:07 +00:00
Sadie Powell
49ea709027
Merge branch '2.0' into 2.1.
2024-02-17 20:50:31 +00:00
Sadie Powell
5c50bcb9c7
Remove the time_t parameter from Tick and TickTimers.
...
Most uses of Tick do not use the parameter and even when it is used
it is always the same as CurTime.
2024-02-11 18:18:18 +00:00
Sadie Powell
cef56abea4
Consistently use time_t for the timer duration.
2024-02-11 18:10:38 +00:00
Sadie Powell
30b9f12711
Remove the now parameter from the Timer class.
...
This was never actually changed from the default.
2024-02-11 17:56:35 +00:00
Sadie Powell
484160eb4e
Shuffle modules around a bit.
2024-01-24 12:34:34 +00:00