3676 Commits

Author SHA1 Message Date
Sadie Powell
3b1e4f1b5f Split ExtBan::Acting from ExtBan::ActingBase. 2024-02-15 14:53:52 +00:00
Sadie Powell
a23392459d Move DataProvider to base. 2024-01-22 17:22:38 +00:00
Sadie Powell
0086b162aa Add Hex::Decode as a complement for Hex::Encode. 2024-01-13 17:45:42 +00:00
Sadie Powell
c5cc071611 Fix the string overload of Hex::Encode not passing on the separator. 2024-01-13 17:24:28 +00:00
Sadie Powell
34591ec89f Merge branch 'insp3' into master. 2023-12-22 22:01:09 +00:00
Sadie Powell
786a538fa5 Release v3.17.0. 2023-12-22 19:27:30 +00:00
InspIRCd Robot
473e57eb65 Update copyright headers. 2023-12-22 19:27:30 +00:00
Sadie Powell
94dbb3872a Merge branch 'insp3' into master. 2023-11-05 19:03:42 +00:00
Sadie Powell
83f01b36a1 When copying a message also copy the source string. 2023-11-05 18:56:43 +00:00
Sadie Powell
ec65aa8295 QuickExit is obsolete again so we can remove it again. 2023-10-17 14:00:46 +01:00
Sadie Powell
28607066e0 Allow assigning dynamic references from other dynamic references. 2023-09-29 11:50:17 +01:00
Sadie Powell
136a1ef6a2 Add an option for including the setter's full mask in list modes. 2023-09-21 20:17:13 +01:00
Sadie Powell
e9271fcb49 Rename <options:hostintopic> to <options:maskintopic>.
This option stores the user *mask* not the user host so the old
name is incorrect.
2023-09-21 20:06:39 +01:00
Sadie Powell
6a9b215c04 Fix a nonsense comment in the cloak API header. 2023-09-21 09:10:07 +01:00
Sadie Powell
2f36d0aa2d Move TokenList back to its own header and move INSP_FORMAT to compat.
This allows making stringutils an optional header given that most
of it is not used by most of the codebase.
2023-09-03 18:46:48 +01:00
Sadie Powell
c054356831 Make the constructor of ModuleEventListener protected. 2023-08-20 18:05:32 +01:00
Sadie Powell
21b5db5d9e Don't include "regex/" in the link data of the filter/rline modules. 2023-08-18 13:41:28 +01:00
Sadie Powell
a84e8aac58 Fix big list limits and expose the limit to TellListTooLong. 2023-08-12 09:59:34 +01:00
Sadie Powell
2953c643e7 Fix list modes unintentionally being case sensitive.
Closes #907.
2023-08-12 08:41:24 +01:00
Sadie Powell
f73e9e606b Rename the error log level to critical.
"ERROR" is apparently defined by more than just Windows. Let's
pick a different name which is less likely to cause collisions.
2023-08-11 12:39:49 +01:00
Sadie Powell
681b488fc0 Update usages of stdalgo::string::equalsci to use insp::equalsci. 2023-08-11 12:03:09 +01:00
Sadie Powell
ccf23ffa0b Move stdalgo::string::{equalsci,tocstr} to utility/string.
Co-authored-by: Attila Molnar <attilamolnar@hush.com>
Co-authored-year: 2016
2023-08-11 12:03:09 +01:00
Sadie Powell
70131c8e78 Move stdalgo::string::join to utility/string and templatise separator. 2023-08-11 12:03:09 +01:00
Sadie Powell
da11a39964 Rename utility/string_view to utility/string. 2023-08-11 12:03:09 +01:00
Sadie Powell
cd6784021f Make config file cache invalidation more useful. 2023-08-06 00:50:05 +01:00
Sadie Powell
635feb1a9a Rework how away state is stored internally.
This will be necessary for implementing pre-away as well as some
changes for WATCH compatibility with Unreal.
2023-08-04 13:14:49 +01:00
Sadie Powell
e6d342d89f Make the X-line quit message format a lot more flexible. 2023-07-21 18:12:46 +01:00
Sadie Powell
d722f73920 Add a typedef for the Template::Replace map. 2023-07-21 17:37:42 +01:00
Sadie Powell
1a746b2c7f Allow timers to not be restarted after changing the interval.
This is useful if you're changing them from Tick.
2023-07-21 11:22:42 +01:00
Sadie Powell
4e5e8af424 Windows build cleanup.
[skip alpine ci]
[skip irctest ci]
[skip macos ci]
[skip ubuntu ci]
2023-07-15 16:33:45 +01:00
Sadie Powell
fd564cd44a Rename several Windows files to use the same naming scheme.
[skip alpine ci]
[skip irctest ci]
[skip macos ci]
[skip ubuntu ci]
2023-07-15 10:31:48 +01:00
Sadie Powell
b4e3e97329 Simplify the codes that InspIRCd can exit with.
The custom codes that InspIRCd exits with are not very useful and can confuse init systems like systemd which assume that certain
exit codes mean certain things. INSPIRCD_BINARY_EXIT was a workaround
for this in v3 but considering thatsers have to check the logs anyway
so we may as well just use EXIT_SUCCESS and EXIT_FAILURE.
2023-07-13 14:07:26 +01:00
Sadie Powell
342f94ec22 Normalise the case of ServerStats. 2023-07-13 14:07:26 +01:00
Sadie Powell
3a5870adf0 Improve the inlining of some channel functions. 2023-07-07 09:59:41 +01:00
Sadie Powell
4258d3452a Update KickUser to match PartUser. 2023-07-06 21:56:39 +01:00
Sadie Powell
66f2423a1d Make PartUser inline and add an overload that takes an iterator.
The return value of PartUser is not used 99% of the time so this
allows the compiler to optimise it out.
2023-07-06 21:56:28 +01:00
Sadie Powell
6cbd7a07b0 Invalidate the file cache when reading SSL certs.
This fixes reading the same file when the SSL certs are reloaded
without a full rehash (e.g. via SIGUSR1 or /REHASH -ssl).

This also reverts 8f0d732e38.
2023-07-03 18:53:47 +01:00
Sadie Powell
386f0dafd5 Replace FileReader with something more sensible. 2023-07-03 18:43:58 +01:00
Sadie Powell
377566b0e6 Fix a minor Doxygen comment issue. 2023-07-03 18:43:31 +01:00
Sadie Powell
fc160b3414 Make MaxTargets a size_t. 2023-07-03 18:43:31 +01:00
Sadie Powell
130966707f Refactor the ServerConfig class.
All fields are now ordered in the most memory efficient way and all
public fields use the correct case. Every member has been redocumented
to match the current documentation style.
2023-07-03 18:43:24 +01:00
Sadie Powell
d739f3c126 Move ServerLimits inside ServerConfig. 2023-07-03 14:29:09 +01:00
Sadie Powell
6eb5dd5e3d Fix shun matching (again) and document what the matches do. 2023-07-03 09:25:33 +01:00
Sadie Powell
a0e424fc3a Refactor Change{Displayed,Real}Host to match other Change* methods. 2023-06-30 08:28:40 +01:00
Sadie Powell
1d96baaf77 Remove OnPreChange{Host,RealName} events and deboolify methods.
These have not ever been used as far as I can see.
2023-06-29 22:52:07 +01:00
Sadie Powell
1e20faa07f Misc grammar fixes. 2023-06-29 19:29:59 +01:00
Sadie Powell
cb43ae3e2b Fix matching IP shuns. 2023-06-29 19:15:41 +01:00
Sadie Powell
29705306f2 Retain the "real" username properly like we do for hostnames.
This introduces the concept of a real username. This value comes
from either the initial USER message or from an ident lookup. Doing
this allows us to use it for bans through vidents and cloaking web
client users using their remote username.

While changing this I also changed all of the uses of "ident" other
than RFC 1413 lookups and some compatibility cases to refer to
usernames as user(name) instead of ident. Our use of ident in these
places was incorrect as that only refers to the RFC 1413 response
and is not commonly used in the way we used it by any other IRC
server implementations.
2023-06-29 17:01:25 +01:00
Sadie Powell
1f5551c1e8 Inline various User methods. 2023-06-25 17:18:08 +01:00
Sadie Powell
89b185eb05 Make Numerics::CannotSendTo properly aware of extbans. 2023-06-22 19:36:13 +01:00