added config to remove dangling expired/emptied auctions

This commit is contained in:
zeb
2025-10-07 15:51:37 -04:00
parent b1ed903c06
commit b59164c4a9
4 changed files with 57 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ public:
}
}
void OnBeforeAuctionHouseMgrSendAuctionExpiredMail(AuctionHouseMgr* /*auctionHouseMgr*/, AuctionEntry* /*auction*/, Player* owner, uint32& /*owner_accId*/, bool& sendNotification, bool& /*sendMail*/) override
void OnBeforeAuctionHouseMgrSendAuctionExpiredMail(AuctionHouseMgr* /*auctionHouseMgr*/, AuctionEntry* /*auction*/, Player* owner, uint32& /*owner_accId*/, bool& sendNotification, bool& sendMail) override
{
if (owner)
{
@@ -78,6 +78,11 @@ public:
if (isAHBot == true)
{
sendNotification = false;
if (sConfigMgr->GetOption<bool>("AuctionHouseBot.ReturnExpiredAuctionItemsToBot", false))
sendMail = true;
else
sendMail = false;
}
}
}