mirror of
https://github.com/Tha14/toxic.git
synced 2025-12-16 09:36:34 +01: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