merge
authoralfadur
Thu, 04 Oct 2018 13:26:48 -0400
changeset 13859 ff468792298a
parent 13858 664935d80668 (current diff)
parent 13856 acb8b5530aa8 (diff)
child 13860 6e4e745f42bb
merge
--- 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