Sadie Powell
ecbf53ba6c
Allow customising the length at which lines are wrapped after.
...
Closes #485 .
2025-03-22 07:33:02 +00:00
Sadie Powell
6d72fd67d8
Improve logging about the protocol module on startup.
2025-03-19 13:37:11 +00:00
Sadie Powell
e86fa67e38
Use a set instead of a vector for storing memo ignores.
2025-03-19 10:12:02 +00:00
Sadie Powell
4700d48b35
Import a slightly modified version of mkauthors from InspIRCd.
2025-03-16 12:16:02 +00:00
Sadie Powell
30593321f4
Fix getting the IP of a user in CommandSource.
2025-03-15 21:08:49 +00:00
Sadie Powell
3b35199a53
Add NickCore::FindId for finding an account by its id.
2025-03-15 21:08:26 +00:00
Sadie Powell
9f8525e3b2
Refactor the TIME handler.
2025-03-13 10:47:18 +00:00
Sadie Powell
9ec3f6abd6
Refactor and redocument Serialize::Type.
2025-03-12 16:52:46 +00:00
Sadie Powell
e7b18609f6
Add defines for the core serialisation type names.
2025-03-12 15:53:52 +00:00
Sadie Powell
cdcf0e2f9a
Move serialization from Serializable to a Serialize::Type child.
2025-03-12 15:53:52 +00:00
Sadie Powell
2276c62ff0
Move serialization data type logic from sql.h to the core.
2025-03-12 00:16:15 +00:00
Sadie Powell
fb0ee27df0
Save the databases on SIGUSR1.
2025-03-12 00:16:15 +00:00
Sadie Powell
b14befc77c
Fix an outdated comment.
2025-03-10 13:10:13 +00:00
Sadie Powell
6e90a8ea55
Don't tell users that services is shutting down when its restarting.
2025-03-09 18:56:27 +00:00
Sadie Powell
6d7fe69cdf
Add support for oper-only quit messages.
...
This currently only works on InspIRCd but I believe that other
servers also support this.
2025-03-09 18:51:03 +00:00
Sadie Powell
badcf31499
Make config variables a lot more useful.
...
- Config variables now no longer conflict with regular values.
- Config variables can now be read from the environment.
(e.g. ${env.USER}).
- Config variables can now be used as partial values
(e.g. support@${network.domain})
2025-03-09 14:20:34 +00:00
Sadie Powell
62bfa33464
Rework how nickname protection works.
...
- Rename the command and module from kill to protect (this command
hasn't actually killed users in a long time).
- Replace QUICK/IMMED with a duration option.
2025-03-08 14:07:15 +00:00
Sadie Powell
2091dc68bc
Move REPRODUCIBLE_BUILD to sysconf.
2025-03-06 01:24:39 +00:00
Sadie Powell
4526fbed96
Add a helper method for getting a description of an uplink.
2025-03-02 15:42:25 +00:00
Sadie Powell
f9911dde52
Return references instead of pointers from the config system.
...
We used to return NULL from these methods but now we return an empty
block so this can never actually be null now.
2025-03-02 15:27:47 +00:00
Sadie Powell
a5e5eb5eb0
Return EmptyBlock instead of NULL from GetModule.
2025-03-02 14:43:57 +00:00
Sadie Powell
82aecd6c7e
Bump for 2.1.13-git.
2025-02-28 16:11:40 +00:00
Sadie Powell
3cef83c8c5
Release 2.1.12.
2025-02-28 16:10:09 +00:00
Sadie Powell
0c193f8149
Store the source address in the identify request.
2025-02-20 19:49:01 +00:00
Sadie Powell
0a82366a6b
Merge branch '2.0' into 2.1.
2025-01-14 13:41:19 +00:00
Sadie Powell
da7f47c1c7
Update the copyright headers for 2025.
2025-01-14 13:30:07 +00:00
Sadie Powell
a92f09153a
Bump for 2.0.18-git.
2024-12-08 12:18:55 +00:00
Sadie Powell
73714420d1
Release 2.0.17.
2024-12-08 12:15:26 +00:00
Sadie Powell
b6f5b50086
Bump for 2.1.12-git.
2024-12-01 10:06:34 +00:00
Sadie Powell
3ae4a022eb
Release 2.1.11.
2024-12-01 10:04:21 +00:00
Sadie Powell
3cbac4bcea
Update Send and Recv to use ssize_t instead of int.
2024-11-25 16:14:17 +00:00
Sadie Powell
2464913200
Simplify the duration string logic in Anope::Expires.
...
This is just duplicating Anope::Duration there's no need to reimplement
a worse version of that here.
2024-11-25 03:02:24 +00:00
Sadie Powell
ebea728957
Fix pluralising languages which use the same plural for 0 as 1.
2024-11-25 01:20:03 +00:00
Sadie Powell
70227dc882
Take a constant pointer in GetModule.
2024-11-24 22:36:53 +00:00
Sadie Powell
436dab3eb8
Convert some more strings to plural forms.
2024-11-22 15:32:39 +00:00
Sadie Powell
c3055e1cfa
Add a plural form overload of SendMessage.
2024-11-22 15:22:23 +00:00
Sadie Powell
2cb20ded78
Remove some code that should have been removed in the merge.
2024-11-19 19:55:34 +00:00
Sadie Powell
687bcaa83f
Add a plural form overload of CommandSource::Reply.
2024-11-19 17:10:29 +00:00
Sadie Powell
7083c424c2
Only process sockets after loading the db when using db_sql{_live}.
...
This avoids slow startups for the 95% of users who are using the
db_flatfile database backend.
2024-11-19 00:39:00 +00:00
Sadie Powell
7a20f26b84
Only auto-add timers if they actually have a tick time.
2024-11-18 00:48:50 +00:00
Sadie Powell
de16238e01
Process all socket events before connecting to the uplink.
...
This ensures that the SQL import actually succeeds before we do
something that might terminate the process.
2024-11-16 12:49:45 +00:00
Sadie Powell
bc44195a3d
Make the account id map also use a checker.
2024-11-15 15:12:50 +00:00
Sadie Powell
8408bf95c7
Fix an inverted condition.
2024-11-13 12:10:38 +00:00
Sadie Powell
0dc65cc162
Clean up Anope::Duration and switch to use plural form translation.
2024-11-13 02:57:15 +00:00
Sadie Powell
2e6c90d502
Add support for plural form translation.
...
Closes #340 .
2024-11-13 02:48:13 +00:00
Sadie Powell
127ea3e68a
Process all socket events before connecting to the uplink.
...
This ensures that the SQL import actually succeeds before we do
something that might terminate the process.
2024-11-12 17:24:14 +00:00
Sadie Powell
df1c6176b3
Merge branch '2.0' into 2.1.
2024-11-11 17:13:01 +00:00
Sadie Powell
96ccfe4cbe
Fix using User::Account where User::IsIdentified should be used.
...
The former causes a dereference which cause a database update. This
is not good for performance with db_sql_live on bigger networks.
2024-11-11 16:46:56 +00:00
Sadie Powell
1393518555
Fix some compiler warnings from not checking chdir.
2024-11-07 19:34:46 +00:00
Sadie Powell
51827b94ad
Simplify account identifier generation.
2024-11-07 19:33:01 +00:00