Sadie Powell
0d149ce195
Install a systemd service file on Linux.
2024-04-15 20:29:57 +01:00
Sadie Powell
3e5d3c5bdc
Avoid packaging unnecessary .lib files on Windows.
...
[skip alpine ci]
[skip ubuntu ci]
2024-04-15 12:41:56 +01:00
Sadie Powell
00549bc9b2
Merge branch '2.0' into 2.1.
2024-04-04 19:59:19 +01:00
Sadie Powell
2e43665266
Log the services directory when chdiring to it.
2024-04-04 14:02:57 +01:00
Sadie Powell
8b4cd65e2a
Fix erroring out when sendmailpath is empty.
...
This has a default now.
2024-04-02 16:52:41 +01:00
Sadie Powell
c08aaa86d1
Sync the build system directory names with the core.
2024-04-02 16:52:41 +01:00
Sadie Powell
87a8af0ad7
Use the paths from the build system instead of hardcoding them.
2024-04-02 16:45:49 +01:00
Sadie Powell
4691dfa3f0
Bump for 2.1.5-git.
2024-04-01 11:26:07 +01:00
Sadie Powell
507eefc820
Release 2.1.4.
2024-04-01 11:24:48 +01:00
Sadie Powell
1b631e96bd
Add a default value for sendmailpath.
2024-03-31 15:17:03 +01:00
Sadie Powell
4399eeaa58
Add the --nopid option to disable writing a pidfile.
...
This is useful for init scripts that don't fork.
2024-03-20 21:34:28 +00:00
Sadie Powell
38cfb0603a
Fix deleting pidfiles.
2024-03-20 21:34:18 +00:00
Sadie Powell
1a3844e74e
Fix the Windows build.
2024-03-19 15:58:41 +00:00
Sadie Powell
bfed2e1bf5
Use paths relative to data/conf in the config file.
...
This was done in some places already but not consistently.
Closes #349 .
2024-03-19 15:51:55 +00:00
Sadie Powell
fde3438ef2
Allow using absolute paths in more places.
2024-03-19 15:11:40 +00:00
Sadie Powell
413fed474e
Fix unnecessary uses of std::string.
2024-03-18 12:47:43 +00:00
Sadie Powell
60083834f8
Improve sending email.
...
- Use consistent line endings as expected by the email spec.
- Don't require admins to escape . at the start of lines.
- Log the reason why sending email fails.
2024-03-18 12:34:34 +00:00
Sadie Powell
9ac4da0489
Fix not storing the start time after calling UpdateTime.
2024-03-18 11:45:33 +00:00
Sadie Powell
cb3848b7db
Use clock_gettime if it is available.
2024-03-18 11:27:10 +00:00
Sadie Powell
d41764bfd6
Fix sending emails to nicks ending with a backslash.
2024-03-15 18:52:12 +00:00
Sadie Powell
753119c4a1
Use consistent casing when referring to vhosts and vidents.
2024-03-15 12:42:13 +00:00
Sadie Powell
13a556df89
Initialize timer members with constructor initialization.
2024-03-14 23:19:32 +00:00
Sadie Powell
c8d8978cd0
Require that at least one encryption module is loaded.
2024-03-12 21:57:38 +00:00
Sadie Powell
11edba04fe
Add command handlers for encap commands on InspIRCd.
2024-03-12 21:57:06 +00:00
Sadie Powell
6fd7ca39e2
Fix the reason when kicking users from suspended channels.
...
Closes #372 .
2024-03-12 17:00:42 +00:00
Sadie Powell
54719fbfc6
Allow protocol modules to declare that they have no line/mode limit.
...
InspIRCd allows us to send infinite length lines and mode changes
and will restack before sending to users.
2024-03-12 12:39:33 +00:00
Sadie Powell
06add0e5fc
Simplify limit extraction code.
2024-03-12 12:24:02 +00:00
Sadie Powell
04e1a4f5c8
Add a protocol module function for extracting timestamps.
2024-03-12 11:02:08 +00:00
Sadie Powell
1538909ac0
Add ProtocolException and use it to send fatal errors.
2024-03-12 00:17:49 +00:00
Sadie Powell
02355546ff
Reject registrations and password changes if password encryption fails.
2024-03-11 19:39:47 +00:00
Sadie Powell
29e7674e56
Replace convertTo/stringify with non-throwing alternatives.
...
Having these throw is terrible for ergonomics and there are loads
of places where the exception was either silently ignored or not
handled at all. Having a function which returns an optional and
another that returns a default works a lot better imo.
2024-03-11 19:17:29 +00:00
Sadie Powell
9a8cac060d
Add support for encrypting passwords with the Argon2 algorithm.
...
Closes #369 .
2024-03-10 15:09:38 +00:00
Sadie Powell
ef37daf44a
Clean up the services.h includes.
2024-03-09 22:22:56 +00:00
Sadie Powell
9ead3f15c3
Save the last email time for accounts.
2024-03-09 22:22:55 +00:00
Sadie Powell
272104af95
Modernize the initialisation of NickAlias and NickCore.
2024-03-09 22:22:55 +00:00
Sadie Powell
1d0a836a2e
Improve protocol debug messages.
2024-03-08 12:24:44 +00:00
Sadie Powell
4e04a11995
Consistently use email instead of e-mail.
2024-03-07 22:52:41 +00:00
Sadie Powell
464e6b8010
Use the C++11 random number generator instead of rand().
...
This is safer, faster, and doesn't require seeding.
2024-03-07 22:52:41 +00:00
Sadie Powell
9970b4e37b
Bump for 2.1.4-git.
2024-03-04 11:09:51 +00:00
Sadie Powell
a5a615d5c7
Release 2.1.3.
2024-03-04 11:09:51 +00:00
Sadie Powell
1a8ae513b4
Add NickAlias::GetVhostMask for getting the vident@vhost.
2024-03-04 11:09:50 +00:00
Sadie Powell
4e0f94bcce
Fix some oversights from previous commits.
2024-02-29 23:18:46 +00:00
Sadie Powell
1c1645096f
If a user runs an invalid command try to suggest a valid one.
2024-02-29 21:56:14 +00:00
Sadie Powell
190c37a68b
Rework some platform compatibility code.
2024-02-29 19:11:37 +00:00
Sadie Powell
579af3c442
Rip out ns_access and related code.
...
This is wildly insecure and has been disabled by default for at
least a decade.
2024-02-29 16:14:15 +00:00
Sadie Powell
25bdcfcbc4
Add names for the numerics used by the core.
2024-02-29 13:07:14 +00:00
Sadie Powell
26919f41d2
If a PRIVMSG or NOTICE is empty then send a single space instead.
...
Currently a bunch of code does source.Reply(" ") to ensure that an
empty line gets rendered but this is a much better way to handle
this problem.
The code that does this already will be updated in a future commit
to avoid breaking translations in progress.
2024-02-29 12:31:19 +00:00
Sadie Powell
73d4ac6de0
Remove redundant uses of const.
2024-02-27 10:34:27 +00:00
Sadie Powell
7640fad30c
Simplify several boolean expressions.
2024-02-27 10:19:44 +00:00
Sadie Powell
9f6d378755
Fix write_pidfile on Windows.
...
Microsoft's documentation lies again.
2024-02-27 10:19:36 +00:00