command_available return stickernames only if stickerdb is enabled
This commit is contained in:
parent
48ce8e9fb7
commit
f8271fec12
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user