1) Stop people from saying the same thing immediately after they said it. Server responds with "you already said that".
2) Too many misspelled words (this is a little more iffy). To prevent people doing stuff like ssssssssssssss or asl;kdjfasdlkjfas;dfj or whatever. I would hate to prevent a legitimate attempt by someone speaking another language or using broken/legitimately misspelled English from chatting though.
There are probably existing implementations of spam filtering in chat that could be leveraged here.
1) Stop people from saying the same thing immediately after they said it. Server responds with "you already said that".
2) Too many misspelled words (this is a little more iffy). To prevent people doing stuff like ssssssssssssss or asl;kdjfasdlkjfas;dfj or whatever. I would hate to prevent a legitimate attempt by someone speaking another language or using broken/legitimately misspelled English from chatting though.
There are probably existing implementations of spam filtering in chat that could be leveraged here.