- Timestamp:
- 2007-04-20T04:49:30Z (18 years ago)
- Branches:
- master
- Children:
- 61ae52c
- Parents:
- f0cb961
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/nogaim.c
rf0cb961 rd323394c 372 372 373 373 memset( nick, 0, MAX_NICK_LENGTH + 1 ); 374 strcpy( nick, nick_get( ic->acc, handle , NULL) );374 strcpy( nick, nick_get( ic->acc, handle ) ); 375 375 376 376 u = user_add( ic->irc, nick ); … … 426 426 } 427 427 428 429 428 void imcb_rename_buddy( struct im_connection *ic, char *handle, char *realname ) 430 429 { 431 430 user_t *u = user_findhandle( ic, handle ); 431 char *s, newnick[MAX_NICK_LENGTH+1]; 432 432 433 433 if( !u || !realname ) return; … … 441 441 if( ( ic->flags & OPT_LOGGED_IN ) && set_getbool( &ic->irc->set, "display_namechanges" ) ) 442 442 imcb_log( ic, "User `%s' changed name to `%s'", u->nick, u->realname ); 443 444 if( !u->online && !nick_saved( ic->acc, handle ) ) 445 { 446 /* Detect numeric handles: */ 447 for( s = u->user; isdigit( *s ); s++ ); 448 449 if( *s == 0 ) 450 { 451 /* If we reached the end of the string, it only contained numbers. 452 Seems to be an ICQ# then, so hopefully realname contains 453 something more useful. */ 454 strcpy( newnick, realname ); 455 456 /* Some processing to make sure this string is a valid IRC nickname. */ 457 nick_strip( newnick ); 458 if( set_getbool( &ic->irc->set, "lcnicks" ) ) 459 nick_lc( newnick ); 460 461 u->nick = g_strdup( newnick ); 462 } 463 } 443 464 } 444 465 }
Note: See TracChangeset
for help on using the changeset viewer.