improved module disablement when AuctionHouseBot.GUIDs is not configured

This commit is contained in:
zeb
2025-11-11 22:33:33 -05:00
parent 8038fec2db
commit 41fd346a6e

View File

@@ -1814,9 +1814,9 @@ bool AuctionHouseBot::IsModuleEnabled()
if (sellerEnabled == false && buyerEnabled == false) if (sellerEnabled == false && buyerEnabled == false)
return false; return false;
string charString = sConfigMgr->GetOption<std::string>("AuctionHouseBot.GUIDs", "0"); string charString = sConfigMgr->GetOption<std::string>("AuctionHouseBot.GUIDs", "0");
if (charString == "0") if (charString == "0" || charString.empty())
{ {
LOG_INFO("module", "AuctionHouseBot: AuctionHouseBot.GUIDs is '0' so this module will be disabled"); LOG_INFO("module", "AuctionHouseBot: AuctionHouseBot.GUIDs is not configured so this module will be disabled");
return false; return false;
} }
return true; return true;