gameServer/HWProtoCore.hs
changeset 9446 4fd5df03deb8
parent 9105 18ebb59c89fe
child 9448 04e0acfa7c2c
equal deleted inserted replaced
9444:30748b1d9ec7 9446:4fd5df03deb8
    48         h "GLOBAL" p = do
    48         h "GLOBAL" p = do
    49             cl <- thisClient
    49             cl <- thisClient
    50             rnc <- liftM snd ask
    50             rnc <- liftM snd ask
    51             let chans = map (sendChan . client rnc) $ allClients rnc
    51             let chans = map (sendChan . client rnc) $ allClients rnc
    52             return [AnswerClients chans ["CHAT", "[global notice]", p] | isAdministrator cl]
    52             return [AnswerClients chans ["CHAT", "[global notice]", p] | isAdministrator cl]
       
    53         h "WATCH" = return . QueryReplay
    53         h c p = return [Warning $ B.concat ["Unknown cmd: /", c, p]]
    54         h c p = return [Warning $ B.concat ["Unknown cmd: /", c, p]]
    54 
    55 
    55 handleCmd cmd = do
    56 handleCmd cmd = do
    56     (ci, irnc) <- ask
    57     (ci, irnc) <- ask
    57     let cl = irnc `client` ci
    58     let cl = irnc `client` ci