GameServer: Use consistent formatting of clan chat (compared with engine)
authorWuzzy <Wuzzy2@mail.ru>
Sun, 26 Aug 2018 16:51:01 +0200
changeset 13706 dec29ef3ef76
parent 13705 aa1d71ca6c19
child 13707 043f694d25d9
GameServer: Use consistent formatting of clan chat (compared with engine) It's called "clan chat" now, not "team chat". Also the brackets and text positions were inconsistent with engine.
gameServer/HWProtoInRoomState.hs
--- a/gameServer/HWProtoInRoomState.hs	Sun Aug 26 15:10:34 2018 +0200
+++ b/gameServer/HWProtoInRoomState.hs	Sun Aug 26 16:51:01 2018 +0200
@@ -382,7 +382,9 @@
     chans <- roomSameClanChans
     return [AnswerClients chans ["EM", engineMsg cl]]
     where
-        engineMsg cl = toEngineMsg $ B.concat ["b", nick cl, " (team): ", msg, "\x20\x20"]
+        -- FIXME: Use different method to send team message, without hardcoding the format.
+        -- The formatting should be decided by the engine, not the sever. This one cannot be localized.
+        engineMsg cl = toEngineMsg $ B.concat ["b", "[Clan] ", nick cl, ": ", msg, "\x20\x20"]
 
 
 handleCmd_inRoom ["BAN", banNick] = do