gameServer/Actions.hs
changeset 9399 1767c92eff37
parent 9381 90f9d8046a86
child 9401 2af7bea32e5e
--- a/gameServer/Actions.hs	Tue Aug 06 00:26:07 2013 +0400
+++ b/gameServer/Actions.hs	Sat Aug 17 23:38:53 2013 +0400
@@ -671,8 +671,11 @@
     io $ moveFailedRecord fileName
 
 processAction (CheckSuccess info) = do
-    Just (CheckInfo fileName _) <- client's checkInfo
+    Just (CheckInfo fileName teams) <- client's checkInfo
+    io $ writeChan (dbQueries si) $ StoreAchievement fileName (map toPair teams) info
     io $ moveCheckedRecord fileName
+    where
+        toPair t = (teamname t, teamowner t)
 
 #else
 processAction SaveReplay = return ()