New command tagtypes available

Shows the list of tag types configured by the ``metadata_to_use`` setting.
This commit is contained in:
jcorporation
2024-09-28 21:03:49 +02:00
parent 124c0e66ee
commit 25e8ce2d37
5 changed files with 21 additions and 0 deletions

View File

@@ -104,6 +104,9 @@ handle_tagtypes(Client &client, Request request, Response &r)
} else if (StringIsEqual(cmd, "disable")) {
client.tag_mask &= ~ParseTagMask(request);
return CommandResult::OK;
} else if (StringIsEqual(cmd, "available")) {
tag_print_types_available(r);
return CommandResult::OK;
} else {
r.Error(ACK_ERROR_ARG, "Unknown sub command");
return CommandResult::ERROR;