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
Sadie Powell
80894752a7
Make JoinUser return a Membership instead of a Channel.
2023-06-22 16:40:05 +01:00
Sadie Powell
7d202728c8
Merge branch 'insp3' into master.
2023-06-17 19:05:08 +01:00
InspIRCd Robot
ff8e1e2c75
Update copyright headers.
2023-06-16 11:54:49 +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
6348a2e4bc
Misc XLine cleanup.
2023-06-05 14:40:52 +01:00
Sadie Powell
fabd86ab97
Make XLine::Matches const.
2023-06-05 14:31:29 +01:00
Sadie Powell
1367e66500
Add a DelLine override that takes an XLine pointer.
2023-06-05 14:22:42 +01:00
Sadie Powell
a4b95340b7
Make XLine::Displayable const.
2023-06-05 14:22:42 +01:00
Sadie Powell
c4858e2a11
Convert DelLine from const char* to const std::string&.
2023-05-30 20:37:48 +01:00
Sadie Powell
ea85c0c6ba
Fix casing of metadata in function and event names.
...
Metadata is one word not two so it shouldn't be capitalised like this.
2023-05-30 02:38:25 +01:00
Sadie Powell
ad02b418fd
We can't explicitly specify the signedness here as it causes issues.
...
This reverts commit 023ca96054191b66643425d673acb66c08fa1048.
2023-05-17 13:18:50 +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
023ca96054
Fix some issues with ConvToNum<char> and ConvToStr<char>.
2023-05-16 09:12:44 +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