--- a/gameServer/HWProtoInRoomState.hs Mon Mar 01 15:03:13 2010 +0000
+++ b/gameServer/HWProtoInRoomState.hs Mon Mar 01 17:54:12 2010 +0000
@@ -204,7 +204,10 @@
[]
where
client = clients IntMap.! clID
- engineMsg = toEngineMsg $ 'b' : (nick client ++ "(team): " ++ decodedMsg ++ "\x20\x20")
+ -- 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
handleCmd_inRoom clID _ _ _ = [ProtocolError "Incorrect command (state: in room)"]