mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-28 21:26:46 +02:00
escape newlines in contact names/status messages
This commit is contained in:
@ -88,7 +88,10 @@ int qsort_strcasecmp_hlpr(const void *str1, const void *str2);
|
||||
- cannot start with a space
|
||||
- must not contain a forward slash (for logfile naming purposes)
|
||||
- must not contain contiguous spaces */
|
||||
int valid_nick(char *nick);
|
||||
int valid_nick(const char *nick);
|
||||
|
||||
/* Converts all newline 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 */
|
||||
void get_file_name(char *namebuf, int bufsize, const char *pathname);
|
||||
|
Reference in New Issue
Block a user