Added configuration on excluded prefixes for trade action (#1401)

* - Added configuration on excluded prefixes for trade action

* - LoadListString usage reference specified

* - Code refactoring
This commit is contained in:
kadeshar
2025-07-04 17:13:19 +02:00
committed by GitHub
parent 40535f6e55
commit c0aa55416b
4 changed files with 7 additions and 7 deletions

View File

@@ -4,9 +4,7 @@
*/
#include "PlayerbotAIConfig.h"
#include <iostream>
#include "Config.h"
#include "PlayerbotDungeonSuggestionMgr.h"
#include "PlayerbotFactory.h"
@@ -465,6 +463,8 @@ bool PlayerbotAIConfig::Initialize()
LoadListString<std::vector<std::string>>(sConfigMgr->GetOption<std::string>("AiPlayerbot.AllowedLogFiles", ""),
allowedLogFiles);
LoadListString<std::vector<std::string>>(sConfigMgr->GetOption<std::string>("AiPlayerbot.TradeActionExcludedPrefixes", ""),
tradeActionExcludedPrefixes);
worldBuffs.clear();