From 2e26ae581062ca636dd02718e7cbbf71e022b04a Mon Sep 17 00:00:00 2001 From: notoraptor Date: Mon, 26 Aug 2019 15:02:44 -0400 Subject: Client sends a 'UnknownToken' request when it receives a notification for an unknown token. --- diplomacy/communication/responses.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'diplomacy/communication/responses.py') diff --git a/diplomacy/communication/responses.py b/diplomacy/communication/responses.py index f9f9fce..6353150 100644 --- a/diplomacy/communication/responses.py +++ b/diplomacy/communication/responses.py @@ -52,6 +52,14 @@ class Ok(_AbstractResponse): """ Ok response sent by default after handling a request. """ __slots__ = [] +class NoResponse(_AbstractResponse): + """ Indicates that no responses are required """ + __slots__ = [] + + def __bool__(self): + """ This response always evaluate to false """ + return False + class DataGameSchedule(_AbstractResponse): """ Response with info about current scheduling for a game. """ __slots__ = ['game_id', 'phase', 'schedule'] -- cgit v1.2.3