373 Commits

Author SHA1 Message Date
Sadie Powell
f3aa73d5e1 Fix some inappropriate uses of ConvToNum. 2025-03-01 18:09:47 +00:00
Sadie Powell
32a127d2e0 Avoid the use of ConvToStr in string concatenation.
This function calls INSP_FORMAT in most cases nowadays so we may
as well just call that manually.
2025-03-01 16:06:32 +00:00
Sadie Powell
fc9d49641f Add support for extbans without letters. 2024-10-16 12:25:20 +01:00
Sadie Powell
bd7e5fd621 Add a type alias for the extban letter type. 2024-09-27 18:38:42 +01:00
Sadie Powell
b0a73189db Clean up the names of some variables in the extban header. 2024-09-27 18:30:11 +01:00
InspIRCd Robot
8e784862f5 Update copyright headers. 2024-09-07 11:10:36 +01:00
Sadie Powell
d95be0a516 Add a formatting overload to {Membership,User}::Write(Remote)Notice. 2024-08-18 16:19:12 +01:00
Sadie Powell
a4bee21ab5 Update all usages of ProtocolServer to use Server. 2024-07-24 00:31:34 +01:00
Sadie Powell
6ae6ad176e Unregister extbans when the providing module is unloaded. 2024-07-06 03:08:13 +01:00
InspIRCd Robot
fd4c5e3840 Update copyright headers. 2024-06-21 10:36:09 +01:00
InspIRCd Robot
d4da9eeff9 Update copyright headers. 2024-06-14 09:13:03 +01:00
Sadie Powell
ba19a3259b Update Doxygen config and fix some warnings. 2024-06-11 20:29:04 +01:00
Sadie Powell
be0ad350c1 Remove an extraneous semicolon in the SQL module header. 2024-06-07 12:04:00 +01:00
InspIRCd Robot
ae3e2db109 Update copyright headers. 2024-06-07 10:37:56 +01:00
Sadie Powell
4b6af49b43 Allow mutating the status message type in OnUserPre(Tag)Message. 2024-05-06 17:18:07 +01:00
Sadie Powell
91bcc80d29 Rename OnBroadcastMessage to OnRouteMessage.
This is more descriptive of what it actually does.
2024-03-08 19:37:12 +00:00
Sadie Powell
25bf927365 Rework SQL::PopulateUserInfo. 2024-02-19 19:18:27 +00:00
Sadie Powell
ebd03383f8 Allow using multiple SSL fingerprint algorithms.
Closes #1804.
2024-02-19 18:46:05 +00:00
Sadie Powell
3b1e4f1b5f Split ExtBan::Acting from ExtBan::ActingBase. 2024-02-15 14:53:52 +00: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
21b5db5d9e Don't include "regex/" in the link data of the filter/rline modules. 2023-08-18 13:41:28 +01:00
Sadie Powell
2953c643e7 Fix list modes unintentionally being case sensitive.
Closes #907.
2023-08-12 08:41:24 +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
377566b0e6 Fix a minor Doxygen comment issue. 2023-07-03 18:43:31 +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
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
89b185eb05 Make Numerics::CannotSendTo properly aware of extbans. 2023-06-22 19:36:13 +01:00
Sadie Powell
78cd3898f5 Only regenerate cloaks if a cloak of that type exists.
This prevents unnecessary recloaking which may result in spam.
2023-06-07 12:59:35 +01:00
Sadie Powell
684d9a8da1 Fix some typos in the cloak header. 2023-06-06 01:05:55 +01:00
Sadie Powell
acc9f5228f Allow secondary cloak methods to be used on link synchronisation.
If a server has a conditional cloak method (e.g. account) as the
primary cloak method it doesn't make sense to use it for link
consistency. With this change a secondary cloak method can request
that it is used instead of the primary if the primary does not
mark itself as link sensitive.
2023-06-06 01:02:14 +01:00
Sadie Powell
fabd86ab97 Make XLine::Matches const. 2023-06-05 14:31:29 +01:00
Sadie Powell
a4b95340b7 Make XLine::Displayable const. 2023-06-05 14:22:42 +01:00
Sadie Powell
67c37b43de Merge branch 'insp3' into master. 2023-05-16 09:52:22 +01:00
Sadie Powell
e64d14f4f7 Fix some minor Doxygen issues. 2023-05-16 09:51:14 +01:00
Sadie Powell
fe4c512839 Rename duration to timeutils and relocate InspIRCd::TimeString. 2023-05-10 11:57:48 +01:00
Sadie Powell
cc2244e7ba Fix the cloak modules on Clang and MSVC. 2023-05-03 17:47:41 +01:00
Sadie Powell
aae97bda3e Add <cloak:class> to limit cloaks to a specific connect class. 2023-05-02 13:33:31 +01:00
Sadie Powell
8900f17231 Merge branch 'insp3' into master. 2023-04-28 19:30:25 +01:00
InspIRCd Robot
f2c74267ac Update copyright headers. 2023-04-28 10:21:39 +01:00
Sadie Powell
3c056d489c Merge branch 'insp3' into master. 2023-04-27 11:00:42 +01:00
Sadie Powell
5a24fb0f61 Add client cert activation/expiration times to the ssl_cert class. 2023-03-01 20:45:07 +00:00
Sadie Powell
45d68e95c9 Sort opers alphabetically in /STATS P. 2023-02-27 22:11:52 +00:00
Sadie Powell
d141f9c025 Make module classes specify their priority manually. 2023-02-27 20:29:56 +00:00
Sadie Powell
23ab5cfa51 Allow modules to get/reset the cloak lists. 2023-02-14 14:24:22 +00:00
Sadie Powell
06d801b527 Merge branch 'insp3' into master. 2023-02-14 09:21:59 +00:00
Sadie Powell
297212ca4d Switch to the IRCv3 standard-replies cap.
Nothing is using this so far so I'm not counting it as a breaking
change.
2023-02-13 14:27:51 +00:00
Sadie Powell
416661d17d Add an option so local non-SSL users can be seen as securely connected. 2023-02-11 09:30:22 +00:00
Sadie Powell
e64ace4c82 Expose the removed away message in OnUserBack. 2023-02-03 09:26:31 +00:00