Sadie Powell
2850e3c65c
Implement serializer hashing in db_json.
2025-06-21 00:31:02 +01:00
Sadie Powell
8b37cdb5d5
Make the access description more useful when importing from Atheme.
2025-06-17 14:50:36 +01:00
Sadie Powell
c5bff3a099
Fix various issues with language strings.
2025-06-16 12:30:42 +01:00
Sadie Powell
96a503b4d9
Fix a memory leak in the db_json module.
...
This reworks the module to store Data instead of a yyjson document
which does not free until yyjson_doc_free even if an array is cleared
(which annoyingly was only documented using a single comment in the
yyjson docs).
2025-06-05 22:01:45 +01:00
Sadie Powell
7c5d2c09fa
Be more specific in the generator field in db_json.
2025-05-11 17:16:35 +01:00
Sadie Powell
41e702d853
Prefix the special db_json columns with an @.
2025-05-11 16:52:46 +01:00
Sadie Powell
19f83eaa34
Fix loading databases in db_json.
2025-05-11 16:45:44 +01:00
Sadie Powell
010beb52b1
Store the setter and ts for all modes and try to restore them.
...
This is mostly for preserving channel list mode info.
2025-05-03 21:28:56 +01:00
Sadie Powell
f0b26c9b44
Drop support for Bahamut as it has no non-DALnet users.
...
Closes #438 .
2025-05-03 18:41:59 +01:00
Sadie Powell
f5a85c69d2
Remove time from the name of some variables where its obvious.
2025-04-19 22:53:49 +01:00
Sadie Powell
70bf013ef0
Allow syntax messages to take a predicate.
2025-04-19 16:54:26 +01:00
Sadie Powell
d815906393
Get rid of the internal block wrapper.
...
This only existed for compatibility with old 2.0 modules and 2.1
has already broken compatibility with them.
2025-04-19 12:49:06 +01:00
Sadie Powell
5eb13f4420
Use Anope::Template in db_json.
2025-04-15 13:04:09 +01:00
Sadie Powell
bd9d3b0f7d
Add support for monthly backups to db_json.
2025-04-15 13:00:34 +01:00
Sadie Powell
4024598bd8
Execute SQL updates atomically.
...
If the Serialize call alters any tables they would have previously
been missed here.
2025-03-30 13:01:13 +01:00
Sadie Powell
665b0fdef8
Refuse to import data that already exists in db_atheme.
2025-03-30 12:17:23 +01:00
Sadie Powell
dc09408f1a
Add a typedef for the serializable id.
2025-03-26 10:22:42 +00:00
Sadie Powell
49d86527ef
Initialize the db_flatfile LoadData stream reference from the ctor.
2025-03-26 09:32:29 +00:00
Sadie Powell
c60477384c
Add the db_json module.
2025-03-26 09:08:55 +00:00
Sadie Powell
0a11bc7693
Merge branch '2.0' into 2.1.
2025-03-19 13:08:14 +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
3187233783
Fix setting keepbackups to 0 in db_flatfile.
2025-03-13 13:37:54 +00:00
Sadie Powell
a357ba38fb
Fix deleting old db_flatfile database backups.
2025-03-13 12:14:17 +00:00
Sadie Powell
cdcf0e2f9a
Move serialization from Serializable to a Serialize::Type child.
2025-03-12 15:53:52 +00:00
Sadie Powell
2b2b6f75a1
Fix the id data type in db_flatfile.
2025-03-12 00:55:21 +00:00
Sadie Powell
883367c1d2
Fix importing some data from 1.8.
2025-03-12 00:33:41 +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
df0cd3ef3e
Move some headers around.
2025-03-08 12:22:07 +00:00
Sadie Powell
9e37a643f1
Fix some minor issues with db_atheme error messages.
2025-03-07 12:34:19 +00:00
Sadie Powell
b30bfb5d2b
Import misc channel and user metadata in db_atheme.
2025-03-07 12:31:42 +00:00
Sadie Powell
cccdf0431b
Don't warn when importing an external auth account from Atheme.
...
This happens when Atheme was using LDAP to authenticate users. We
will replace the temporary password at a later date if Anope is set
up to use LDAP too.
2025-03-06 23:31:56 +00:00
Sadie Powell
0005ebbbc3
Import logon and oper news from Atheme.
2025-03-06 23:05:38 +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
bf68d1c0e0
Merge branch '2.0' into 2.1.
2025-02-20 13:07:14 +00:00
Sadie Powell
227caba783
Fix sql_live on recent MariaDB.
2025-02-20 13:05:22 +00:00
Sadie Powell
3af8f35d3a
Import more data from Atheme.
2025-02-05 00:46:52 +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
b4b51d4828
Merge branch '2.0' into 2.1.
2024-11-19 00:40:24 +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
613452acba
Remove an unnecessary function from db_sql_live.
2024-11-11 10:56:53 +00:00
Sadie Powell
9411dac991
Add a helper function to db_sql(_live) for getting a table name.
2024-11-11 10:44:20 +00:00
Sadie Powell
03bee17063
Remove the unused KeySet method in Serialize::Data.
2024-08-14 00:10:12 +01:00
Sadie Powell
347d82f59b
Qualify a use of auto in db_atheme.
2024-07-08 00:53:47 +01:00
Sadie Powell
b94c3740b9
Make the language around fantasy commands less weird.
2024-06-23 14:36:03 +01:00
Sadie Powell
a386439f86
Misc improvements to db_atheme.
2024-06-20 17:16:16 +01:00
Sadie Powell
016a5b3903
Fix importing Atheme mode locks.
2024-06-20 17:16:16 +01:00
Sadie Powell
60aeb2a71a
Silently ignore some Atheme metadata that we know we can't import.
2024-06-19 22:45:43 +01:00
Sadie Powell
54ea63df66
Avoid creating extra service references in db_atheme.
2024-06-19 22:44:31 +01:00
Sadie Powell
01fc3ea22e
Fix importing Atheme opers.
2024-06-19 22:44:31 +01:00