command_available return stickernames only if stickerdb is enabled

This commit is contained in:
jcorporation 2024-05-12 21:23:29 +02:00
parent 48ce8e9fb7
commit f8271fec12

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