gameServer/HWProtoInRoomState.hs
changeset 2207 aeea95909aba
parent 2126 cb249fa8e3da
child 2245 c011aecc95e5
equal deleted inserted replaced
2206:067c954f09ef 2207:aeea95909aba
    14 
    14 
    15 handleCmd_inRoom :: CmdHandler
    15 handleCmd_inRoom :: CmdHandler
    16 
    16 
    17 handleCmd_inRoom clID clients _ ["CHAT", msg] =
    17 handleCmd_inRoom clID clients _ ["CHAT", msg] =
    18 	[AnswerOthersInRoom ["CHAT", clientNick, msg]]
    18 	[AnswerOthersInRoom ["CHAT", clientNick, msg]]
       
    19 	where
       
    20 		clientNick = nick $ clients IntMap.! clID
       
    21 
       
    22 
       
    23 handleCmd_inRoom clID clients _ ["TEAM_CHAT", msg] =
       
    24 	[AnswerOthersInRoom ["TEAM_CHAT", clientNick, msg]]
    19 	where
    25 	where
    20 		clientNick = nick $ clients IntMap.! clID
    26 		clientNick = nick $ clients IntMap.! clID
    21 
    27 
    22 
    28 
    23 handleCmd_inRoom clID clients rooms ["PART"] =
    29 handleCmd_inRoom clID clients rooms ["PART"] =