Sadie Powell
cd6784021f
Make config file cache invalidation more useful.
2023-08-06 00:50:05 +01:00
Sadie Powell
bcd4dbfb5d
Make ldapauth take an enum field for the username field.
2023-08-06 00:23:50 +01:00
Sadie Powell
d0f9d84ead
Pass the raw away state to AwayMessage in the ircv3 module.
2023-08-04 13:59:15 +01:00
Sadie Powell
ddc6273206
Send RPL_REAWAY for compatibility with Unreal's WATCH implementation.
2023-08-04 13:15:13 +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
afb6a20547
Fix an inverted condition in the DNSBL module.
2023-08-01 17:51:47 +01:00
Sadie Powell
e785cdd603
Release v4.0.0 alpha 23.
2023-08-01 17:22:29 +01:00
Sadie Powell
ccfa04c4d2
Fix some cases missed in the previous commit.
2023-07-25 10:10:02 +01:00
Sadie Powell
3f3c2583be
Also allow suffixing with -line[d] if an X-line is two characters.
...
This makes things easier for modules like require_auth in contrib
which has a GA-line.
2023-07-25 09:48:50 +01:00
Sadie Powell
2ee3fb86dd
Add the %created% and %fulltype% variables for the X-line reason.
2023-07-25 08:58:08 +01:00
Sadie Powell
d5aa7ccda5
Merge branch 'insp3' into master.
2023-07-22 09:19:00 +01:00
Sadie Powell
c901e62710
Fix the filter module preventing access to core stats.
2023-07-22 08:17:46 +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
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
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
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
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
cd1c202165
Merge branch 'insp3' into master.
2023-07-13 07:33:58 +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
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
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
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
68e1b23932
Tidy up spanningtree config reading.
2023-07-06 22:51:20 +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
e6d5dfe0a0
Respect notifyuser in the muteban part handler.
2023-07-06 21:19:20 +01:00