Skip to content
Snippets Groups Projects
Commit 279820cd authored by sphere's avatar sphere
Browse files

Merge branch 'slash-n' into 'next'

add checks for \n in chat messages

See merge request STJr/SRB2!2170
parents 0c59a46d 3331e073
No related branches found
No related tags found
No related merge requests found
......@@ -714,10 +714,12 @@ static void Got_Saycmd(UINT8 **p, INT32 playernum)
// Clean up message a bit
// If you use a \r character, you can remove your name
// from before the text and then pretend to be someone else!
// If you use a \n character, you can create a new line in
// the log and then pretend to be someone else as well!
ptr = msg;
while (*ptr != '\0')
{
if (*ptr == '\r')
if (*ptr == '\r' || *ptr == '\n')
*ptr = ' ';
ptr++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment