mirror of
https://github.com/NathanHandley/mod-ah-bot-plus.git
synced 2026-01-13 01:08:37 +00:00
improved module disablement when AuctionHouseBot.GUIDs is not configured
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user