Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • nick.c

    r46511b3 r6b13103  
    2020  You should have received a copy of the GNU General Public License with
    2121  the Debian GNU/Linux distribution in /usr/share/common-licenses/GPL;
    22   if not, write to the Free Software Foundation, Inc., 59 Temple Place,
    23   Suite 330, Boston, MA  02111-1307  USA
     22  if not, write to the Free Software Foundation, Inc., 51 Franklin St.,
     23  Fifth Floor, Boston, MA  02110-1301  USA
    2424*/
    2525
     
    4141        do {
    4242                if (*orig != ' ')
    43                         new[i++] = tolower( *orig );
     43                        new[i++] = g_ascii_tolower( *orig );
    4444        }
    4545        while (*(orig++));
     
    144144                                fmt += 2;
    145145                        }
    146                         else if( isdigit( *fmt ) )
     146                        else if( g_ascii_isdigit( *fmt ) )
    147147                        {
    148148                                len = 0;
    149149                                /* Grab a number. */
    150                                 while( isdigit( *fmt ) )
     150                                while( g_ascii_isdigit( *fmt ) )
    151151                                        len = len * 10 + ( *(fmt++) - '0' );
    152152                        }
     
    331331                }
    332332        }
    333         if( isdigit( nick[0] ) )
     333        if( g_ascii_isdigit( nick[0] ) )
    334334        {
    335335                char *orig;
     
    351351       
    352352        /* 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 )
    354354                return 0;
    355355       
Note: See TracChangeset for help on using the changeset viewer.