# HG changeset patch # User unc0rr # Date 1246225426 0 # Node ID aeea95909aba0e54f661ecff86b07b31a095efc0 # Parent 067c954f09ef86c316e78a168ecdd140508483ee Make server accpet TEAM_CHAT protocol command, and act like on CHAT command for now diff -r 067c954f09ef -r aeea95909aba gameServer/HWProtoInRoomState.hs --- a/gameServer/HWProtoInRoomState.hs Sun Jun 28 18:59:26 2009 +0000 +++ b/gameServer/HWProtoInRoomState.hs Sun Jun 28 21:43:46 2009 +0000 @@ -20,6 +20,12 @@ clientNick = nick $ clients IntMap.! clID +handleCmd_inRoom clID clients _ ["TEAM_CHAT", msg] = + [AnswerOthersInRoom ["TEAM_CHAT", clientNick, msg]] + where + clientNick = nick $ clients IntMap.! clID + + handleCmd_inRoom clID clients rooms ["PART"] = if isMaster client then [RemoveRoom]