1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-29 06:56:44 +02:00

add valid nick function

This commit is contained in:
Jfreegman
2013-11-28 02:53:43 -05:00
parent 7ca087b5e7
commit a04c8964ee
4 changed files with 32 additions and 7 deletions

View File

@ -30,3 +30,9 @@ void alert_window(ToxWindow *self);
/* case-insensitive string compare function for use with qsort - same return logic as strcmp */
int name_compare(const void *nick1, const void *nick2);
/* Returns true if nick is valid. A valid toxic nick:
- cannot be empty
- cannot start with a space
- must not contain contiguous spaces */
bool valid_nick(uint8_t *nick);