gameServer/HWProtoCore.hs
changeset 8401 87410ae372f6
parent 8396 5123eac2f9d6
child 8403 fbc6e7602e05
equal deleted inserted replaced
8400:33ab77c0b486 8401:87410ae372f6
    21 handleCmd ["PING"] = answerClient ["PONG"]
    21 handleCmd ["PING"] = answerClient ["PONG"]
    22 
    22 
    23 
    23 
    24 handleCmd ("QUIT" : xs) = return [ByeClient msg]
    24 handleCmd ("QUIT" : xs) = return [ByeClient msg]
    25     where
    25     where
    26         msg = if not $ null xs then head xs else "bye"
    26         msg = if not $ null xs then head xs else loc "bye"
    27 
    27 
    28 
    28 
    29 handleCmd ["PONG"] = do
    29 handleCmd ["PONG"] = do
    30     cl <- thisClient
    30     cl <- thisClient
    31     if pingsQueue cl == 0 then
    31     if pingsQueue cl == 0 then