(svn r15316) -Fix [NoAI]: ignore unprintable chars when returning a string to squirrel

This commit is contained in:
glx
2009-02-02 13:46:26 +00:00
parent c6bc3b8692
commit 6d6e2232ea
3 changed files with 6 additions and 5 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, bool allow_newlines = false);
void str_validate(char *str, bool allow_newlines = false, bool ignore = false);
/** Scans the string for colour codes and strips them */
void str_strip_colours(char *str);