- Timestamp:
- 2015-01-16T19:50:23Z (8 years ago)
- Branches:
- master
- Children:
- 1065dd4, eabe6d4
- Parents:
- 6f10697
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
nick.c
r6f10697 r6b13103 41 41 do { 42 42 if (*orig != ' ') 43 new[i++] = tolower( *orig );43 new[i++] = g_ascii_tolower( *orig ); 44 44 } 45 45 while (*(orig++)); … … 144 144 fmt += 2; 145 145 } 146 else if( isdigit( *fmt ) )146 else if( g_ascii_isdigit( *fmt ) ) 147 147 { 148 148 len = 0; 149 149 /* Grab a number. */ 150 while( isdigit( *fmt ) )150 while( g_ascii_isdigit( *fmt ) ) 151 151 len = len * 10 + ( *(fmt++) - '0' ); 152 152 } … … 331 331 } 332 332 } 333 if( isdigit( nick[0] ) )333 if( g_ascii_isdigit( nick[0] ) ) 334 334 { 335 335 char *orig; … … 351 351 352 352 /* Empty/long nicks are not allowed, nor numbers at [0] */ 353 if( !*nick || isdigit( nick[0] ) || strlen( nick ) > MAX_NICK_LENGTH )353 if( !*nick || g_ascii_isdigit( nick[0] ) || strlen( nick ) > MAX_NICK_LENGTH ) 354 354 return 0; 355 355
Note: See TracChangeset
for help on using the changeset viewer.