From 46038830c3bf40982e8529a9e008fb7cc5d1064f Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Fri, 26 Jun 2020 07:30:26 +0200 Subject: [PATCH] fix trailing could not pay notification if there was nothing left to pay for --- MultiServer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MultiServer.py b/MultiServer.py index 0c37ddcc..5432f6f8 100644 --- a/MultiServer.py +++ b/MultiServer.py @@ -820,8 +820,9 @@ class ClientMessageProcessor(CommandProcessor): self.ctx.hints[self.client.team, hint.receiving_player].add(hint) else: - self.output( - "Could not pay for everything. Rerun the hint later with more points to get the remaining hints.") + if not_found_hints: + self.output( + "Could not pay for everything. Rerun the hint later with more points to get the remaining hints.") notify_hints(self.ctx, self.client.team, found_hints + hints) self.ctx.save() return True