gameServer/Actions.hs
changeset 9868 53d1b92db6ce
parent 9786 e33ee5ef5d9d
child 9950 2759212a27de
child 9973 7589978c9912
equal deleted inserted replaced
9866:62ffe234127d 9868:53d1b92db6ce
   715     io $ moveFailedRecord fileName
   715     io $ moveFailedRecord fileName
   716 
   716 
   717 
   717 
   718 processAction (CheckSuccess info) = do
   718 processAction (CheckSuccess info) = do
   719     Just (CheckInfo fileName teams) <- client's checkInfo
   719     Just (CheckInfo fileName teams) <- client's checkInfo
       
   720     p <- client's clientProto
   720     si <- gets serverInfo
   721     si <- gets serverInfo
   721     io $ writeChan (dbQueries si) $ StoreAchievements (B.pack fileName) (map toPair teams) info
   722     io $ writeChan (dbQueries si) $ StoreAchievements p (B.pack fileName) (map toPair teams) info
   722     io $ moveCheckedRecord fileName
   723     io $ moveCheckedRecord fileName
   723     where
   724     where
   724         toPair t = (teamname t, teamowner t)
   725         toPair t = (teamname t, teamowner t)
   725 
   726 
   726 processAction (QueryReplay rname) = do
   727 processAction (QueryReplay rname) = do