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.
--- 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