gameServer/HWProtoInRoomState.hs
changeset 14447 b444f100a625
parent 14379 b33127bc2424
child 14841 111c4d750c6d
equal deleted inserted replaced
14446:cb08cecc3bab 14447:b444f100a625
   380     chans <- roomSameClanChans
   380     chans <- roomSameClanChans
   381     return [AnswerClients chans ["EM", engineMsg cl]]
   381     return [AnswerClients chans ["EM", engineMsg cl]]
   382     where
   382     where
   383         -- This is formatted in a way so it can parsed by engine to make it translatable
   383         -- This is formatted in a way so it can parsed by engine to make it translatable
   384         -- Format: b<PLAYER NAME>]<MESSAGE>
   384         -- Format: b<PLAYER NAME>]<MESSAGE>
   385         engineMsg cl = toEngineMsg $ B.concat ["b", nick cl, "]", msg]
   385         engineMsg cl = toEngineMsg $ B.concat ["b", nick cl, "]", msg, "\x20\x20"]
   386 
   386 
   387 
   387 
   388 handleCmd_inRoom ["BAN", banNick] = do
   388 handleCmd_inRoom ["BAN", banNick] = do
   389     (thisClientId, rnc) <- ask
   389     (thisClientId, rnc) <- ask
   390     maybeClientId <- clientByNick banNick
   390     maybeClientId <- clientByNick banNick