Skip to content

Commit

Permalink
Fixed #469 - fixed all string value conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
foldynl committed Sep 29, 2024
1 parent 147eb3f commit 08e548f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/AlertEvaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,11 @@ bool AlertRule::match(const DxSpot &spot) const
&& (sourceMap & SpotAlert::DXSPOT)
&& (dxCountry == 0 || dxCountry == spot.dxcc.dxcc)
&& (spot.status & dxLogStatusMap)
&& (mode == "*" || mode.contains("|" + spot.modeGroupString))
&& (mode == "*" || (!spot.modeGroupString.isEmpty() && mode.contains("|" + spot.modeGroupString)))
&& (band == "*" || (!spot.band.isEmpty() && band.contains("|" + spot.band)))
&& (spotterCountry == 0 || spotterCountry == spot.dxcc_spotter.dxcc )
&& (dxContinent == "*" || dxContinent.contains("|" + spot.dxcc.cont))
&& (spotterContinent == "*" || spotterContinent.contains("|" + spot.dxcc_spotter.cont))
&& (dxContinent == "*" || (!spot.dxcc.cont.isEmpty() && dxContinent.contains("|" + spot.dxcc.cont)))
&& (spotterContinent == "*" || (!spot.dxcc_spotter.cont.isEmpty() && spotterContinent.contains("|" + spot.dxcc_spotter.cont)))
&& (dxMember == QStringList("*") || spot.memberList2Set().intersects(dxMemberSet))
)
{
Expand Down

0 comments on commit 08e548f

Please sign in to comment.