Merge branch 'stickernames_cmd' of https://github.com/jcorporation/MPD

This commit is contained in:
Max Kellermann 2024-07-05 16:26:58 +02:00
commit ffa917e9b5
1 changed files with 2 additions and 1 deletions

View File

@ -212,7 +212,8 @@ command_available([[maybe_unused]] const Partition &partition,
[[maybe_unused]] const struct command *cmd) noexcept
{
#ifdef ENABLE_SQLITE
if (StringIsEqual(cmd->cmd, "sticker"))
if (StringIsEqual(cmd->cmd, "sticker") ||
StringIsEqual(cmd->cmd, "stickernames"))
return partition.instance.HasStickerDatabase();
#endif