aboutsummaryrefslogtreecommitdiff
path: root/diplomacy/communication/responses.py
diff options
context:
space:
mode:
Diffstat (limited to 'diplomacy/communication/responses.py')
-rw-r--r--diplomacy/communication/responses.py8
1 files changed, 8 insertions, 0 deletions
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']