diff --git a/src/strategy/actions/TradeAction.cpp b/src/strategy/actions/TradeAction.cpp index a365b647..c1388b66 100644 --- a/src/strategy/actions/TradeAction.cpp +++ b/src/strategy/actions/TradeAction.cpp @@ -15,6 +15,16 @@ bool TradeAction::Execute(Event event) { std::string const text = event.getParam(); + // Table with prefixes to be excluded from analysis + static const std::vector excludedPrefixes = {"RPLL_H_"}; + + // If text starts with any excluded prefix, don't process it further. + for (const auto& prefix : excludedPrefixes) + { + if (text.find(prefix) == 0) + return false; + } + if (!bot->GetTrader()) { GuidVector guids = chat->parseGameobjects(text);