diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2013-06-16 13:42:39 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2013-06-16 13:42:39 +0100 |
commit | 1a2c1c0c413ea1124544cdc9a24a0d2faa5dbb8f (patch) | |
tree | d3ae6d42d29b7b226abb017ab5dfb07536d2493b /irc_user.c | |
parent | ab19567e25a35beb23f922303d1f60ed13228356 (diff) | |
parent | 5cb946132871ef97fe9eabacafa62f1064d80423 (diff) |
Merging utf8-nicks branch. This adds a utf8_nicks setting which removes the
ASCII restriction on contact nicknames. Use at your own risk!
Diffstat (limited to 'irc_user.c')
-rw-r--r-- | irc_user.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -35,7 +35,7 @@ irc_user_t *irc_user_new( irc_t *irc, const char *nick ) iu->user = iu->host = iu->fullname = iu->nick; iu->key = g_strdup( nick ); - nick_lc( iu->key ); + nick_lc( irc, iu->key ); /* Using the hash table for speed and irc->users for easy iteration through the list (since the GLib API doesn't have anything sane for that.) */ @@ -106,7 +106,7 @@ irc_user_t *irc_user_by_name( irc_t *irc, const char *nick ) char key[strlen(nick)+1]; strcpy( key, nick ); - if( nick_lc( key ) ) + if( nick_lc( irc, key ) ) return g_hash_table_lookup( irc->nick_user_hash, key ); else return NULL; @@ -120,7 +120,7 @@ int irc_user_set_nick( irc_user_t *iu, const char *new ) GSList *cl; strcpy( key, new ); - if( iu == NULL || !nick_lc( key ) || + if( iu == NULL || !nick_lc( irc, key ) || ( ( new_iu = irc_user_by_name( irc, new ) ) && new_iu != iu ) ) return 0; |