mirror of
https://github.com/Tha14/toxic.git
synced 2024-12-23 19:43:26 +01:00
fix
This commit is contained in:
parent
0151b9b49f
commit
a32d76ed16
@ -196,16 +196,16 @@ int qsort_strcasecmp_hlpr(const void *nick1, const void *nick2)
|
||||
int valid_nick(uint8_t *nick)
|
||||
{
|
||||
if (!nick[0] || nick[0] == ' ')
|
||||
return false;
|
||||
return 0;
|
||||
|
||||
int i;
|
||||
|
||||
for (i = 0; nick[i]; ++i) {
|
||||
if (nick[i] == ' ' && nick[i+1] == ' ')
|
||||
return false;
|
||||
return 0;
|
||||
}
|
||||
|
||||
return true;
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* Moves cursor to the end of the line in given window */
|
||||
|
Loading…
Reference in New Issue
Block a user