Skip to content

Commit

Permalink
fix: fuel+ check is case sensitive when client rejoins after close
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperManifolds authored Nov 27, 2024
1 parent 93b6e65 commit e1133f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/mechasqueak/RescueBoard/RescueBoard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ actor RescueBoard {

return currentClient == clientName && Date().timeIntervalSince(updatedAt) < 900
}), configuration.general.drillMode == false, initiated != .insertion {
if recentRescue.quotes.contains(where: { $0.message.contains("fuel+") }) == false {
if recentRescue.quotes.contains(where: { $0.message.lowercased().contains("fuel+") }) == false {
guard let result = try await FuelRatsAPI.getRescue(id: recentRescue.id) else {
return
}
Expand Down

0 comments on commit e1133f8

Please sign in to comment.