16717 Commits

Author SHA1 Message Date
Sadie Powell
b5032fb641 Fix rawio logs not being written after a rehash. 2024-09-09 11:29:08 +01:00
Sadie Powell
a3668d75d6 Use -I for the vendor directory instead of -isystem.
Fixes {fmt} from the system conflicting with our local vendored
copy of {fmt}.

Thanks to @slimture for testing.

Closes #2105.
2024-09-09 07:42:31 +01:00
Sadie Powell
73a98ce7be Use string_view in InspIRCd::Is{FQDN,Host,SID}. 2024-09-07 19:26:29 +01:00
Sadie Powell
83e142fa2f Release v4.3.0. v4.3.0 2024-09-07 11:14:08 +01:00
InspIRCd Robot
8e784862f5 Update copyright headers. 2024-09-07 11:10:36 +01:00
Sadie Powell
863f631fef Merge branch 'insp3' into insp4. 2024-09-07 11:00:50 +01:00
Sadie Powell
bfa2870254 Update the readme for the CentOS packages being dropped. 2024-09-06 11:07:44 +01:00
Sadie Powell
4dc6c98d98 Document the deprecation of the cloak_md5 and md5 module. 2024-09-05 13:25:52 +01:00
Sadie Powell
4579bc5524 Log if the server is using a md5 cloak as their primary method. 2024-09-05 13:25:46 +01:00
Sadie Powell
1f65eb8efc Fix needlessly separating threads and lanes in the argon2 module.
We were not using these correctly and Argon2 uses the thread count
as the lane count anyway so its pointless to even have a setting
for this.
2024-09-05 12:47:03 +01:00
Sadie Powell
bb05d0dd46 Make the <define> options in the example config actually useful. 2024-09-05 12:13:29 +01:00
Sadie Powell
0617fdfb65 Check the connection state of a command before the parameter count.
Works around a bug in irssi.

Closes #2103.
2024-09-03 19:04:27 +01:00
Sadie Powell
591cb8e0b9 Const correct the xline header. 2024-09-03 11:09:54 +01:00
Sadie Powell
e02637d1ed Fix mkdescriptions when parsing docs containing Jinja variables. 2024-09-02 12:37:15 +01:00
Sadie Powell
266cc6c3c3 Make mkauthors/mkheaders respect the mailmap for coauthors. 2024-09-02 11:47:53 +01:00
Sadie Powell
faa96b7956 Fix a regression in ProcessColors.
We should wait until v5 to be this aggressive with MOTD parsing so
we dont break existing users in a minor release.
2024-09-02 10:40:47 +01:00
Sadie Powell
f6da60b3f4 Normalise the case of MOD_RESULT variables. 2024-08-31 16:21:09 +01:00
Sadie Powell
0e603bab1d Minor performance improvement to ProcessColors. 2024-08-31 15:41:35 +01:00
Sadie Powell
7d7b78f3d0 Fix the case of the override module settings. 2024-08-31 00:29:04 +01:00
Sadie Powell
ca0ea6e3d0 Make blockcolor only block known formatting codes. 2024-08-30 17:08:18 +01:00
Sadie Powell
babb39cb17 Refactor InspIRCd::StripColor.
- Only strip characters we actually recognise.
- Strip the value for hex color codes.
2024-08-30 17:07:29 +01:00
Sadie Powell
5d801283bb Fix the getentropy test. 2024-08-30 15:34:00 +01:00
Sadie Powell
ef8e631be2 Add a config variable for the example dir.
This makes including example files easier on system-wide installs.
2024-08-30 15:31:47 +01:00
Sadie Powell
af6a690f52 Add MOTD escape sequences for { and }. 2024-08-30 09:32:44 +01:00
Sadie Powell
baad39b85c Allow using color codes by name in MOTD files. 2024-08-29 23:23:30 +01:00
Sadie Powell
7a59ed2a90 Refactor InspIRCd::ProcessColors. 2024-08-29 22:12:32 +01:00
Sadie Powell
42b46e794f Use auto in GetLevelRequired and GetSyntax. 2024-08-29 14:15:02 +01:00
Sadie Powell
31e3dfddf5 Fix the missing <nick> field in whowas RPL_WHOISACTUALY. 2024-08-29 13:50:31 +01:00
Sadie Powell
0094675b77 Remove the needless cast of <whowas:maxkeep> in core_whowas. 2024-08-28 23:55:47 +01:00
Sadie Powell
c0a68cea9c Tweak the whowas config defaults
- Decrease the default number of nick groups.
- Increase the days to keep records for.
- Enable update on nick change by default.
- Remove the upper bounds on the fields.
2024-08-28 23:55:25 +01:00
Sadie Powell
a84010cd64 Ensure the AUTHENTICATE command always returns a response. 2024-08-27 18:28:57 +01:00
Sadie Powell
bb189aecb7 Avoid adding UUID users to the whowas database. 2024-08-27 18:18:13 +01:00
Sadie Powell
e6ff406b06 Fix the whowas database not being updated on nick change. 2024-08-27 18:16:26 +01:00
Sadie Powell
f4b650b4a9 Slightly reduce the memory usage of the WHOWAS database. 2024-08-27 18:02:50 +01:00
Sadie Powell
5209cc71d5 Store the actual server name rather than the public name for WHOWAS.
We check hideserver when sending the numeric anyway.
2024-08-27 17:57:17 +01:00
Sadie Powell
f634f614d2 Replace the InspIRCd-specific RPL_WHOWASIP with RPL_WHOISACTUALLY.
This makes us more compatible with other server implementations.
2024-08-27 17:55:32 +01:00
Sadie Powell
3f7a7df740 Deprecate the raw overload of GenRandomStr in favour of GenRandom.
The raw overload was almost always misused where GenRandom would
be better.

While we're making changes to this code switch the printable mode
to use a static array like Anope does.
2024-08-27 16:31:38 +01:00
Sadie Powell
21fc51ab7c Use GenRandom instead of GenRandomInt to populate Bcrypt entropy. 2024-08-27 15:17:11 +01:00
Sadie Powell
1302f6ee6d Fix the argument to BindPorts not being documented. 2024-08-27 15:09:40 +01:00
Sadie Powell
491d82677d Fix measuring the CPU load on Windows. 2024-08-27 14:48:28 +01:00
Sadie Powell
56b9a4e48e Redocument ServerStats and switch members to use size_t. 2024-08-27 14:47:35 +01:00
Sadie Powell
e6ea9f7d4a Change InspIRCd::ProcessColors to take a string instead of a vector.
This is more useful for how MOTDs are processed now as we iterate
through them anyway and this allows us to avoid a needless second
iteration.
2024-08-27 14:29:56 +01:00
Sadie Powell
8b02fef312 Fix a minor doxygen warning. 2024-08-27 13:32:30 +01:00
Sadie Powell
1bf5137a9d Use sa_family_t instead of int. 2024-08-27 13:27:17 +01:00
Sadie Powell
5176f8b1ba Refactor the InspIRCd class to be actually readable.
This has been long overdue as most of the comments were outdated
and members were shoved into the class in no logical way.
2024-08-27 13:25:12 +01:00
Sadie Powell
4bb5382840 Remove prototype for the now removed SendLegacyListModes function. 2024-08-25 10:39:41 +01:00
Sadie Powell
35723862e8 Fix broadcasting mode lists to remote v3 servers. 2024-08-24 17:03:54 +01:00
Sadie Powell
cf01291da8 Fix broadcasting server information to remote v3 servers. 2024-08-24 16:26:58 +01:00
Sadie Powell
d2b09b931d Close loggers and notify opers if they throw any exceptions. 2024-08-23 19:47:58 +01:00
Sadie Powell
448c3342d9 Allow building log_json against yyjson.
This is the default if available. RapidJSON has not had a release
in years and has known security vulnerabilities so we should really
not be using it.
2024-08-23 19:47:58 +01:00