258 Commits

Author SHA1 Message Date
InspIRCd Robot
8e784862f5 Update copyright headers. 2024-09-07 11:10:36 +01:00
Sadie Powell
42b46e794f Use auto in GetLevelRequired and GetSyntax. 2024-08-29 14:15:02 +01:00
InspIRCd Robot
fd4c5e3840 Update copyright headers. 2024-06-21 10:36:09 +01:00
InspIRCd Robot
ae3e2db109 Update copyright headers. 2024-06-07 10:37:56 +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
8389fbba6d Replace ModeAction with bool.
This enum is functionally the same as bool but with weird semantics.
2023-01-22 22:52:30 +00:00
Sadie Powell
d048778f78 Merge branch 'insp3' into master. 2023-01-01 13:19:45 +00:00
InspIRCd Robot
2b810b412a Update copyright headers. 2022-12-30 11:31:28 +00:00
Sadie Powell
41926908ec Fix some types which were missed when making stuff final. 2022-10-30 12:58:38 +00:00
Sadie Powell
edfa7270f7 Fix various inappropriate uses of UINT_MAX. 2022-10-14 12:54:36 +01:00
Sadie Powell
89537ed2ab Fix various cases of the &* being next to the name instead of type. 2022-09-29 12:36:01 +01:00
Sadie Powell
9203f40f41 Fix some warnings noticed by the readability-* clang-tidy checkers. 2022-09-03 23:17:05 +01:00
Sadie Powell
648f813f8c Switch from NULL to nullptr. 2022-07-22 18:53:21 +01:00
Sadie Powell
87f036ddf9 Fix the modehandlers array being bigger than necessary
We now pack the positions within this array so we can shrink it.
2022-06-23 15:34:23 +01:00
Sadie Powell
b89a91f2e3 Use size_t instead of unsigned int in ModeParser. 2022-06-11 12:22:34 +01:00
Sadie Powell
c31e4c6a97 Add a typedef for a mode rank. 2022-05-17 13:45:18 +01:00
Sadie Powell
ec217059c3 Store a set of list mode pointers in Membership instead of characters. 2022-05-17 13:02:58 +01:00
Sadie Powell
2ac42d8017 Fix various Doxygen comment issues. 2022-05-02 17:36:37 +01:00
Sadie Powell
d7912e6a3e Merge branch 'insp3' into master. 2022-04-29 11:24:05 +01:00
InspIRCd Robot
346ec99c43 Update copyright headers. 2022-04-28 18:49:16 +01:00
Sadie Powell
30edd1070d Merge branch 'insp3' into master. 2022-04-16 16:16:29 +01:00
Sadie Powell
8656e9cce1 Replace duplicated documentation with @copydoc. 2022-04-16 09:38:34 +01:00
Sadie Powell
6830169ef1 Add a method for finding the next prefix mode above a rank. 2022-04-11 23:49:22 +01:00
Sadie Powell
056d0b4383 Pack the mode set more efficiently and add support for numeric modes. 2022-03-27 16:09:19 +01:00
Sadie Powell
414105e409 Add a typedef for the mode status bitset. 2022-03-27 16:09:19 +01:00
Sadie Powell
ed6e19bbd0 Fix unsigned/const keyword ordering, remove unnecessary consts. 2022-03-27 15:41:28 +01:00
Sadie Powell
d79147e7af Abolish the infernal space before accessibility keywords. 2022-01-25 14:02:36 +00:00
Sadie Powell
94046d9eaf Fix a few Doxygen comment errors. 2022-01-24 23:03:12 +00:00
Sadie Powell
40035385c6 Add constexpr to the initialisation of various const static fields. 2022-01-18 14:33:06 +00:00
Sadie Powell
52cc8a4183 Refactor CoreException and ModuleException. 2022-01-07 17:16:50 +00:00
Sadie Powell
421e8c8c79 Add the final keyword to all remaining classes that can have it. 2021-12-20 20:19:40 +00:00
Sadie Powell
8e6d811f34 Remove a bunch of unnecessary whitespace. 2021-08-17 21:13:05 +01:00
Sadie Powell
5bc4720d55 Merge branch 'insp3' into master. 2021-07-04 14:53:16 +01:00
Sadie Powell
ed62a39821 Move ModeParser::BuildPrefixes to core_mode.
Now we've dropped support for the 1202 protocol we don't need this
in the core.
2021-07-03 15:47:16 +01:00
Sadie Powell
c78d21d00b Move ModeParser::GiveModeList to core_mode.
Now we've dropped support for the 1202 protocol we don't need this
in the core.
2021-07-03 15:26:47 +01:00
Sadie Powell
4350050a82 Fix some "targ" usages which were missed in the earlier commit. 2021-07-03 13:58:34 +01:00
Sadie Powell
d95d7fc4f5 Merge branch 'insp3' into master. 2021-07-01 12:33:51 +01:00
Josh Soref
de6d4dbd1e
Fix various spelling issues (#1883).
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2021-06-21 21:47:06 +01:00
Sadie Powell
10e9e9a5be Rename Simple{Channel,User}ModeHandler to match other mode handlers. 2021-06-01 02:36:13 +01:00
Dominic Hamon
02340285c5
Added -Wshorten-64-to-32 and fixed all warnings. 2021-05-30 20:37:54 +01:00
Sadie Powell
3ca912ad71 Merge branch 'insp3' into master. 2021-05-11 04:07:45 +01:00
Sadie Powell
b4a174ee9c Fix a bunch of weird indentation and spacing issues. 2021-04-27 16:41:14 +01:00
Sadie Powell
34169ed0a7 Constify their_param in ResolveModeConflict.
There's no reason for this to be mutable.
2021-04-06 10:37:00 +01:00
Sadie Powell
7d84e4900f Fix a ton of pedantic compiler warnings. 2021-04-04 23:42:15 +01:00
Sadie Powell
0194f799b9 Merge branch 'insp3' into master. 2021-03-31 15:04:15 +01:00
Sadie Powell
952ee5cc60 Fix various documentation comments. 2021-03-31 10:51:51 +01:00
Sadie Powell
49702c621e Convert various mode methods to take Mode::Change.
- AccessCheck
- AfterMode
- BeforeMode
- OnModeChange
- OnRawMode
2021-03-30 18:25:55 +01:00
Sadie Powell
1e1cf527d2 Merge branch 'insp3' into master. 2021-03-05 02:32:35 +00:00
InspIRCd Robot
7b1ab06a95 Update copyright headers. 2021-03-05 02:16:11 +00:00
Sadie Powell
4e488cb54d Refactor classbase/CullResult into Cullable/Cullable::Result. 2021-03-02 05:56:56 +00:00