diff -r c64d62afafef -r 18fada739b55 gameServer/HWProtoInRoomState.hs --- a/gameServer/HWProtoInRoomState.hs Sat Mar 06 13:39:50 2010 +0000 +++ b/gameServer/HWProtoInRoomState.hs Sat Mar 06 13:40:40 2010 +0000 @@ -6,7 +6,6 @@ import Data.Sequence(Seq, (|>), (><), fromList, empty) import Data.List import Maybe -import qualified Codec.Binary.UTF8.String as UTF8 -------------------------------------- import CoreTypes import Actions @@ -202,10 +201,6 @@ [] where client = clients IntMap.! clID - -- FIXME: why are those decoded* function used? - -- it would be better to use ByteString instead of String - engineMsg = toEngineMsg $ 'b' : (decodedNick ++ "(team): " ++ decodedMsg ++ "\x20\x20") - decodedMsg = UTF8.decodeString msg - decodedNick = UTF8.decodeString $ nick client + engineMsg = toEngineMsg $ 'b' : ((nick client) ++ "(team): " ++ msg ++ "\x20\x20") handleCmd_inRoom clID _ _ _ = [ProtocolError "Incorrect command (state: in room)"]