diff options
Diffstat (limited to 'nick.c')
-rw-r--r-- | nick.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -19,8 +19,8 @@ You should have received a copy of the GNU General Public License with the Debian GNU/Linux distribution in /usr/share/common-licenses/GPL; - if not, write to the Free Software Foundation, Inc., 59 Temple Place, - Suite 330, Boston, MA 02111-1307 USA + if not, write to the Free Software Foundation, Inc., 51 Franklin St., + Fifth Floor, Boston, MA 02110-1301 USA */ #define BITLBEE_CORE @@ -40,7 +40,7 @@ static char *clean_handle( const char *orig ) do { if (*orig != ' ') - new[i++] = tolower( *orig ); + new[i++] = g_ascii_tolower( *orig ); } while (*(orig++)); @@ -143,11 +143,11 @@ char *nick_gen( bee_user_t *bu ) } fmt += 2; } - else if( isdigit( *fmt ) ) + else if( g_ascii_isdigit( *fmt ) ) { len = 0; /* Grab a number. */ - while( isdigit( *fmt ) ) + while( g_ascii_isdigit( *fmt ) ) len = len * 10 + ( *(fmt++) - '0' ); } else if( g_strncasecmp( fmt, "nick", 4 ) == 0 ) @@ -330,7 +330,7 @@ void nick_strip( irc_t *irc, char *nick ) } } } - if( isdigit( nick[0] ) ) + if( g_ascii_isdigit( nick[0] ) ) { char *orig; @@ -350,7 +350,7 @@ gboolean nick_ok( irc_t *irc, const char *nick ) const char *s; /* Empty/long nicks are not allowed, nor numbers at [0] */ - if( !*nick || isdigit( nick[0] ) || strlen( nick ) > MAX_NICK_LENGTH ) + if( !*nick || g_ascii_isdigit( nick[0] ) || strlen( nick ) > MAX_NICK_LENGTH ) return 0; if( irc && ( irc->status & IRC_UTF8_NICKS ) ) |