fix trailing could not pay notification if there was nothing left to pay for

This commit is contained in:
Fabian Dill 2020-06-26 07:30:26 +02:00
parent f489f5f6c5
commit 46038830c3
1 changed files with 3 additions and 2 deletions

View File

@ -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