16491 Commits

Author SHA1 Message Date
Sadie Powell
a2d6e36abe Remove the ability to treat notices specially in delaymsg. 2023-07-21 15:57:32 +01:00
Sadie Powell
325b6f8200 If we can't add an X-line on an DNSBLed user then kill them instead. 2023-07-21 15:34:51 +01:00
Sadie Powell
875d4ac214 Perform DNSBL lookups on E-lined users.
Even if we aren't going to punish these users it can be useful for
opers to know if users are in a DNSBL.
2023-07-21 15:33:27 +01:00
Sadie Powell
f798db93e4 Add support for shunning users who are in a DNSBL. 2023-07-21 15:29:10 +01:00
Sadie Powell
470805acf6 Allow hiding silenced users messages instead of blocking.
Implements part 1 of #1606.
2023-07-21 13:23:30 +01:00
Sadie Powell
68480cee67 Add incremental backoff to the filter/permchannels/xline_db modules.
Closes #1671.
2023-07-21 11:50:32 +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
880af9247a Just link to the social media docs page in the readme.
This will allow us to update the links easier if they change.
2023-07-20 09:41:54 +01:00
Sadie Powell
d826070525 Fix a rare case where the hostname cache was not invalidated. 2023-07-17 12:21:04 +01:00
Sadie Powell
a909bf763a Move checks for whether a user is cloakable to {Get,Reset}Cloaks. 2023-07-17 10:23:52 +01:00
Sadie Powell
4a303da1d5 Fix cloaking users too early in cloak_user. 2023-07-17 07:29:56 +01:00
Sadie Powell
f2e4711210 Use -Wdev when running CMake on GitHub Actions.
[skip alpine ci]
[skip irctest ci]
[skip macos ci]
[skip ubuntu ci]
2023-07-15 18:07:20 +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
c86cc240d9 Convert all files to use UNIX-style line endings. 2023-07-15 15:04:49 +01:00
Sadie Powell
978524b9ac Work around MSVC not implementing uniform_int_distribution<char>. 2023-07-15 13:17:19 +01:00
Sadie Powell
75c17e87b6 Merge branch 'insp3' into master. 2023-07-15 13:05:57 +01:00
Sadie Powell
ccb7b056d6 Replace rand/rand_s/random with the C++11 random number generator. 2023-07-15 12:56:38 +01:00
Sadie Powell
7aceb1ee79 If a watched user appears whilst away then also send RPL_GONEAWAY. 2023-07-15 10:44:08 +01:00
InspIRCd Robot
9923c34a42 Update copyright headers. 2023-07-15 10:37:19 +01:00
Sadie Powell
84a3acc0d6 Fix mkheaders on files with Windows line endings. 2023-07-15 10:32:06 +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
d91d707c6d Error out if CMake is used on non-Windows.
This does not work (currently) and can result in weird issues in
code editors that try to automatically run CMake if they see a
CMakeLists file.
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
cd1c202165 Merge branch 'insp3' into master. 2023-07-13 07:33:58 +01:00
Sadie Powell
c9a30a5acf Update required OpenSSL version on Windows.
The dependency issue which was preventing us from updating has
finally been resolved.
2023-07-13 07:29:54 +01:00
Sadie Powell
45885df22c Fix parsing end-of-file comments that don't end with a newline. 2023-07-12 23:37:59 +01:00
Sadie Powell
4ce688f470 Fix some issues with ReadFile.
- Fix invalidating invoking undefined behaviour when a file is not
  already cached.
- Fix memory corruption caused by assigning a bool to a string.
2023-07-12 15:25:13 +01:00
Sadie Powell
a247b41516 Fix sending the wrong message when a user requests stats.
Closes #2051.
2023-07-12 12:25:40 +01:00
Sadie Powell
c9668b8ab6 Merge branch 'insp3' into master. 2023-07-12 09:36:58 +01:00
Sadie Powell
07672be5bd Define _BSD_SOURCE when building on Haiku.
This fixes a few modules which depend on common BSD extensions.
2023-07-12 09:23:44 +01:00
Sadie Powell
5bd1fa9925 Fix disabling user mode +r on nick change.
Closes #2050.
2023-07-12 02:30:05 +01:00
Sadie Powell
f0d817cf39 Remove rang and use fmtlib for printing coloured messages.
This supports more platforms (e.g. Haiku) and is actually still
maintained unlike the former.

All of this code should really be cleaned up for release (maybe by
adding something like Anope's LOG_CONSOLE) but for now I've just
replaced it with the fmtlib equivalent.
2023-07-12 02:29:04 +01:00
Sadie Powell
f414f25cfc Log if a user specifies an invalid country code in <connect:country>. 2023-07-11 15:35:19 +01:00
Sadie Powell
3854c3f8e3 Merge branch 'insp3' into master. 2023-07-10 09:59:29 +01:00
Sadie Powell
d9a0ca0102 Update the description of the ircv3 module. 2023-07-10 07:53:29 +01:00
Sadie Powell
8553119ac7 The announceinvites setting is in <security> not <options>. 2023-07-10 07:45:42 +01:00
Sadie Powell
de72202cb3 Allow hiding small channels from /LIST past the securelist wait time. 2023-07-09 17:23:15 +01:00
Sadie Powell
d84a041601 Extract securelist exemption logic to its own function. 2023-07-09 16:43:16 +01:00
Sadie Powell
2905f38a80 Allow <define> tags to not redefine a variable if already set.
This is useful for having a provider config which uses entities but
has defaults to fall back to when they are not defined.
2023-07-09 13:35:47 +01:00
Sadie Powell
7ba0917bab Fix a typo in the example configs.
Reported by @siniStar7.
2023-07-07 15:40:36 +01:00
Sadie Powell
ada9e01567 Rename <service> to <services>.
This tag defines a services server not a service server so this is
more grammatically correct.
2023-07-07 13:28:04 +01:00
Sadie Powell
1407f00fa7 Rename the services module config tag to <servicesintegration>. 2023-07-07 13:26:35 +01:00
Sadie Powell
06b938144b Use username in the ident module too.
Nowhere in RFC 1413 does it refer to this field as an ident.
2023-07-07 10:42:36 +01:00
Sadie Powell
1602a0c355 Add support for rechecking whether a user is in a DNSBL. 2023-07-07 09:59:41 +01:00
Sadie Powell
33758b207f Move DNSBL lookup code to SharedData to allow it to be called from several places. 2023-07-07 09:59:41 +01:00
Sadie Powell
3a5870adf0 Improve the inlining of some channel functions. 2023-07-07 09:59:41 +01:00
Sadie Powell
68e1b23932 Tidy up spanningtree config reading. 2023-07-06 22:51:20 +01:00
Sadie Powell
49e73967fe Update Doxygen config for the latest version. 2023-07-06 22:03:41 +01:00
Sadie Powell
4258d3452a Update KickUser to match PartUser. 2023-07-06 21:56:39 +01:00