gameServer/EngineInteraction.hs
changeset 9401 2af7bea32e5e
parent 9304 3f4c3fc146c2
child 9690 6a1748b71df2
--- a/gameServer/EngineInteraction.hs	Sat Aug 17 23:38:53 2013 +0400
+++ b/gameServer/EngineInteraction.hs	Sun Aug 18 17:29:17 2013 +0400
@@ -43,7 +43,7 @@
         lft = foldr l Nothing
         l m n = let m' = B.head $ B.tail m; tst = flip Set.member in 
                       if not $ tst timedMessages m' then n
-                        else if '+' /= m' then Just Nothing else Just $ Just m
+                        else if '+' /= m' then Just Nothing else Just . Just . B.pack . Base64.encode . BW.unpack $ m
         isNonEmpty = (/=) '+' . B.head . B.tail
         legalMessages = Set.fromList $ "M#+LlRrUuDdZzAaSjJ,sNpPwtghbc12345" ++ slotMessages
         slotMessages = "\128\129\130\131\132\133\134\135\136\137\138"