mirror of
https://github.com/Tha14/toxic.git
synced 2024-12-24 17:33:24 +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)
|
int valid_nick(uint8_t *nick)
|
||||||
{
|
{
|
||||||
if (!nick[0] || nick[0] == ' ')
|
if (!nick[0] || nick[0] == ' ')
|
||||||
return false;
|
return 0;
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; nick[i]; ++i) {
|
for (i = 0; nick[i]; ++i) {
|
||||||
if (nick[i] == ' ' && nick[i+1] == ' ')
|
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 */
|
/* Moves cursor to the end of the line in given window */
|
||||||
|
Loading…
Reference in New Issue
Block a user