From f8271fec12b64016b79991a87aa2ecd4ba62d828 Mon Sep 17 00:00:00 2001 From: jcorporation Date: Sun, 12 May 2024 21:23:29 +0200 Subject: [PATCH] command_available return stickernames only if stickerdb is enabled --- src/command/AllCommands.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/command/AllCommands.cxx b/src/command/AllCommands.cxx index f80c7443c..1e7b1c4fb 100644 --- a/src/command/AllCommands.cxx +++ b/src/command/AllCommands.cxx @@ -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