Add player-toggled optional chat filter (#587)

This commit is contained in:
Josua Parks authored and GitHub committed 2025-01-08 20:58:55 -08:00
1 parent 2ddb01132b
commit 620bd57c46
18 files changed
+253 -7

No files matched your search

@@ -4,6 +4,9 @@ command.continue.argument.message=The message to send.
command.continue.description=Sends a message to the last person you messaged.
command.debug.argument.player=The player to check the groups of.
command.debug.description=Shows the permission groups of players.
command.filter.optional.enabled=<green>Optional chat filter enabled!
command.filter.optional.disabled=<red>Optional chat filter disabled!
command.filter.optional.description=Toggles the optional chat filter.
command.help.argument.query=The search query.
command.help.description=Carbon command list.
command.help.misc.arguments=Arguments
@@ -8,7 +8,8 @@ INSERT{!PSQL: IGNORE} INTO carbon_users(
whisperreplytarget,
spying,
ignoringdms,
party
party,
applycustomfilters
) VALUES (
:id,
:muted,
@@ -19,5 +20,6 @@ INSERT{!PSQL: IGNORE} INTO carbon_users(
:whisperreplytarget,
:spying,
:ignoringdms,
:party
:party,
:applycustomfilters
){PSQL: ON CONFLICT DO NOTHING};
@@ -0,0 +1 @@
ALTER TABLE carbon_users ADD COLUMN applycustomfilters BOOLEAN;
@@ -0,0 +1 @@
ALTER TABLE carbon_users ADD COLUMN applycustomfilters BOOLEAN;
@@ -0,0 +1 @@
ALTER TABLE carbon_users ADD COLUMN applycustomfilters BOOLEAN;
@@ -8,5 +8,6 @@ SELECT
whisperreplytarget,
spying,
ignoringdms,
party
party,
applycustomfilters
FROM carbon_users WHERE (id = :id);
@@ -7,5 +7,6 @@ UPDATE carbon_users SET
whisperreplytarget = :whisperreplytarget,
spying = :spying,
ignoringdms = :ignoringdms,
party = :party
party = :party,
applycustomfilters = :applycustomfilters
WHERE (id = :id);