gameServer/HWProtoInRoomState.hs
changeset 6721 7dbf8a0c1f5d
parent 6690 46b3f4776538
child 6738 dd98869d74b4
equal deleted inserted replaced
6720:84261c3408a6 6721:7dbf8a0c1f5d
   284     chans <- roomSameClanChans
   284     chans <- roomSameClanChans
   285     return [AnswerClients chans ["EM", engineMsg cl]]
   285     return [AnswerClients chans ["EM", engineMsg cl]]
   286     where
   286     where
   287         engineMsg cl = toEngineMsg $ B.concat ["b", nick cl, "(team): ", msg, "\x20\x20"]
   287         engineMsg cl = toEngineMsg $ B.concat ["b", nick cl, "(team): ", msg, "\x20\x20"]
   288 
   288 
   289 handleCmd_inRoom _ = return [ProtocolError "Incorrect command (state: in room)"]
   289 handleCmd_inRoom (s:_) = return [ProtocolError $ "Incorrect command '" `B.append` s `B.append` "' (state: in room)"]
       
   290 
       
   291 handleCmd_inRoom [] = return [ProtocolError "Empty command (state: in room)"]