(svn r15135) -Fix/Change: allow str_validate (part of receiving strings from the network) to pass newlines instead of replacing them with question marks, but only when asked to do so.

This commit is contained in:
rubidium
2009-01-18 13:12:57 +00:00
parent b8219eb7a1
commit 07e135547e
5 changed files with 13 additions and 6 deletions

View File

@@ -95,7 +95,7 @@ char *CDECL str_fmt(const char *str, ...);
/** Scans the string for valid characters and if it finds invalid ones,
* replaces them with a question mark '?' */
void str_validate(char *str);
void str_validate(char *str, bool allow_newlines = false);
/** Scans the string for colour codes and strips them */
void str_strip_colours(char *str);