diff -r da7b4d8c181e -r 7588daa8d28f gameServer/Utils.hs --- a/gameServer/Utils.hs Sun Sep 22 18:34:53 2013 +0300 +++ b/gameServer/Utils.hs Wed Sep 25 05:42:16 2013 +0300 @@ -157,5 +157,15 @@ toAnswer cl (paramName, paramStrs) = AnswerClients [sendChan cl] $ "CFG" : paramName : paramStrs +answerAllTeams :: ClientInfo -> [TeamInfo] -> [Action] +answerAllTeams cl = concatMap toAnswer + where + clChan = sendChan cl + toAnswer team = + [AnswerClients [clChan] $ teamToNet team, + AnswerClients [clChan] ["TEAM_COLOR", teamname team, teamcolor team], + AnswerClients [clChan] ["HH_NUM", teamname team, showB $ hhnum team]] + + loc :: B.ByteString -> B.ByteString loc = id