Skip to content

Commit f7bd9ae

Browse files
authored
- Added skipping messages from AdvancedWotLKCombatLog addon in trade action (liyunfan1223#1310)
1 parent b542615 commit f7bd9ae

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/strategy/actions/TradeAction.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@ bool TradeAction::Execute(Event event)
1515
{
1616
std::string const text = event.getParam();
1717

18+
// Table with prefixes to be excluded from analysis
19+
static const std::vector<std::string> excludedPrefixes = {"RPLL_H_"};
20+
21+
// If text starts with any excluded prefix, don't process it further.
22+
for (const auto& prefix : excludedPrefixes)
23+
{
24+
if (text.find(prefix) == 0)
25+
return false;
26+
}
27+
1828
if (!bot->GetTrader())
1929
{
2030
GuidVector guids = chat->parseGameobjects(text);

0 commit comments

Comments
 (0)