mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
fix(Core/Command): cfg check on item restore list (#9659)
This commit is contained in:
@@ -121,6 +121,13 @@ public:
|
||||
|
||||
static bool HandleItemRestoreListCommand(ChatHandler* handler, PlayerIdentifier player)
|
||||
{
|
||||
if (!HasItemDeletionConfig())
|
||||
{
|
||||
handler->SendSysMessage(LANG_COMMAND_DISABLED);
|
||||
handler->SetSentErrorMessage(true);
|
||||
return false;
|
||||
}
|
||||
|
||||
CharacterDatabasePreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_RECOVERY_ITEM_LIST);
|
||||
stmt->setUInt32(0, player.GetGUID().GetCounter());
|
||||
PreparedQueryResult disposedItems = CharacterDatabase.Query(stmt);
|
||||
|
||||
Reference in New Issue
Block a user