1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-28 21:26:46 +02:00

don't allow newlines and tabs in nicks

This commit is contained in:
Jfreegman
2014-10-07 00:43:03 -04:00
parent 6492bd12f9
commit 1f2bd44dce
2 changed files with 12 additions and 8 deletions

View File

@ -87,10 +87,11 @@ int qsort_strcasecmp_hlpr(const void *str1, const void *str2);
- cannot be empty
- cannot start with a space
- must not contain a forward slash (for logfile naming purposes)
- must not contain contiguous spaces */
- must not contain contiguous spaces
- must not contain a newline or tab seqeunce */
int valid_nick(const char *nick);
/* Converts all newline chars to spaces (use for strings that should be contained to a single line) */
/* Converts all newline/tab chars to spaces (use for strings that should be contained to a single line) */
void escape_newline_str(char *str, int len);
/* gets base file name from path or original file name if no path is supplied */