Skip to content

Commit

Permalink
Only allow offering pause if not already offering
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererXII committed Mar 11, 2024
1 parent 7d78e17 commit a29ee6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/round/src/main/Pauser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ final private[round] class Pauser(
Right((usi, prog)).withLeft[Events]
}
)
} else {
} else if (!isOfferingResume(g.id, color)) {
resumeOffers.put(g.id, Pauser.ResumeOffers(sente = color.sente, gote = color.gote))
messenger.system(g, trans.xOffersResumption.txt(color))
fuccess(Left(List(Event.ResumeOffer(by = color.some))))
}
} else fuccess(Left(List(Event.ReloadOwner)))
case _ => fuccess(Left(List(Event.ReloadOwner)))
}

Expand Down

0 comments on commit a29ee6d

Please sign in to comment.