--- a/gameServer/HWProtoLobbyState.hs Thu Oct 04 19:12:09 2018 +0200
+++ b/gameServer/HWProtoLobbyState.hs Thu Oct 04 13:26:48 2018 -0400
@@ -227,3 +227,5 @@
return [Stats]
handleCmd_lobby (s:_) = return [ProtocolError $ "Incorrect command '" `B.append` s `B.append` "' (state: in lobby)"]
+
+handleCmd_lobby [] = return [ProtocolError "Empty command (state: in lobby)"]
\ No newline at end of file
--- a/gameServer/HWProtoNEState.hs Thu Oct 04 19:12:09 2018 +0200
+++ b/gameServer/HWProtoNEState.hs Thu Oct 04 13:26:48 2018 -0400
@@ -102,3 +102,5 @@
#endif
handleCmd_NotEntered (s:_) = return [ProtocolError $ "Incorrect command '" `B.append` s `B.append` "' (state: not entered)"]
+
+handleCmd_NotEntered [] = return [ProtocolError "Empty command (state: not entered)"]
\ No newline at end of file