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:
@ -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);
|
Reference in New Issue
Block a user