diff options
| author | Jelmer Vernooij <jelmer@samba.org> | 2005-11-15 16:16:53 +0100 | 
|---|---|---|
| committer | Jelmer Vernooij <jelmer@samba.org> | 2005-11-15 16:16:53 +0100 | 
| commit | cc9079ee091707aba3d5b0580a6191eb4541cbec (patch) | |
| tree | f3e4bd989411795a4f5184eea5bcbc68be3713b5 /protocols/nogaim.c | |
| parent | f56c4917aa26670c03ef9cf4ecdfe2f7fad92aed (diff) | |
| parent | c998255d6aa501281c6266a5f1dce69d4c3afab4 (diff) | |
Merge from other branch.
Diffstat (limited to 'protocols/nogaim.c')
| -rw-r--r-- | protocols/nogaim.c | 40 | 
1 files changed, 1 insertions, 39 deletions
| diff --git a/protocols/nogaim.c b/protocols/nogaim.c index a5f034c7..bf1f52fc 100644 --- a/protocols/nogaim.c +++ b/protocols/nogaim.c @@ -224,44 +224,6 @@ static char *proto_away_alias_find( GList *gcm, char *away )  	return( NULL );  } -/* Compare two handles for a specific protocol. For most protocols, -   g_strcasecmp is okay, but for AIM, for example, it's not. This really -   should be a compare function inside the PRPL module, but I do it this -   way for now because I don't want to touch the Gaim code too much since -   it's not going to be here for too long anymore. */ -int handle_cmp( char *a, char *b, struct prpl *protocol ) -{ -	if( !strcmp(protocol->name, "oscar") ) -	{ -		/* AIM, being teh evil, thinks it's cool that users can put -		   random spaces in screennames. But "A B" and "AB" are -		   equal. Hrmm, okay. */ -		while( 1 ) -		{ -			while( *a == ' ' ) a ++; -			while( *b == ' ' ) b ++; -			 -			if( *a && *b ) -			{ -				if( tolower( *a ) != tolower( *b ) ) -					return( 1 ); -			} -			else if( *a || *b ) -				return( 1 ); -			else -				return( 0 ); -			 -			a ++; -			b ++; -		} -	} -	else -	{ -		return( g_strcasecmp( a, b ) ); -	} -} - -  /* multi.c */  struct gaim_connection *new_gaim_conn( struct aim_user *user ) @@ -896,7 +858,7 @@ void add_chat_buddy( struct conversation *b, char *handle )  		irc_usermsg( b->gc->irc, "User %s added to conversation %d", handle, b->id );  	/* It might be yourself! */ -	if( handle_cmp ( handle, b->gc->user->username, b->gc->prpl ) == 0 ) +	if( b->gc->prpl->cmp_buddynames( handle, b->gc->user->username ) == 0 )  	{  		u = user_find( b->gc->irc, b->gc->irc->nick );  		if( !b->joined ) | 
