mirror of
https://github.com/NathanHandley/mod-ah-bot-plus.git
synced 2026-02-06 20:37:47 +00:00
Have a "0" GUIDs will explicitly disable the bot
This commit is contained in:
@@ -785,8 +785,14 @@ void AuctionHouseBot::InitializeConfiguration()
|
|||||||
AHBBuyer = sConfigMgr->GetOption<bool>("AuctionHouseBot.EnableBuyer", false);
|
AHBBuyer = sConfigMgr->GetOption<bool>("AuctionHouseBot.EnableBuyer", false);
|
||||||
if (AHBSeller == false && AHBBuyer == false)
|
if (AHBSeller == false && AHBBuyer == false)
|
||||||
return;
|
return;
|
||||||
|
string charString = sConfigMgr->GetOption<std::string>("AuctionHouseBot.GUIDs", "0");
|
||||||
AddCharacters(sConfigMgr->GetOption<std::string>("AuctionHouseBot.GUIDs", "0"));
|
if (charString == "0")
|
||||||
|
{
|
||||||
|
AHBBuyer = false;
|
||||||
|
AHBSeller = false;
|
||||||
|
LOG_INFO("module", "AuctionHouseBot: AuctionHouseBot.GUIDs is '0' so this module will be disabled");
|
||||||
|
}
|
||||||
|
AddCharacters(charString);
|
||||||
|
|
||||||
ItemsPerCycle = sConfigMgr->GetOption<uint32>("AuctionHouseBot.ItemsPerCycle", 75);
|
ItemsPerCycle = sConfigMgr->GetOption<uint32>("AuctionHouseBot.ItemsPerCycle", 75);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user