gameServer/HWProtoCore.hs
changeset 8403 fbc6e7602e05
parent 8401 87410ae372f6
child 8478 d12531f09d59
equal deleted inserted replaced
8402:659e043da6da 8403:fbc6e7602e05
    39             h $ (upperCase . head $ c) : tail c
    39             h $ (upperCase . head $ c) : tail c
    40             else
    40             else
    41             return []
    41             return []
    42     where
    42     where
    43         h ["DELEGATE", n] = handleCmd ["DELEGATE", n]
    43         h ["DELEGATE", n] = handleCmd ["DELEGATE", n]
       
    44         h ["STATS"] = handleCmd ["STATS"]
    44         h c = return [Warning . B.concat . L.intersperse " " $ "Unknown cmd" : c]
    45         h c = return [Warning . B.concat . L.intersperse " " $ "Unknown cmd" : c]
    45 
    46 
    46 handleCmd cmd = do
    47 handleCmd cmd = do
    47     (ci, irnc) <- ask
    48     (ci, irnc) <- ask
    48     if logonPassed (irnc `client` ci) then
    49     if logonPassed (irnc `client` ci) then