Changeset c998255 for protocols/nogaim.c
- Timestamp:
- 2005-11-15T14:57:38Z (18 years ago)
- Branches:
- master
- Children:
- 2cdd8ce, cc9079e
- Parents:
- b135438 (diff), 9cb9868 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/nogaim.c
rb135438 rc998255 224 224 return( NULL ); 225 225 } 226 227 /* Compare two handles for a specific protocol. For most protocols,228 g_strcasecmp is okay, but for AIM, for example, it's not. This really229 should be a compare function inside the PRPL module, but I do it this230 way for now because I don't want to touch the Gaim code too much since231 it's not going to be here for too long anymore. */232 int handle_cmp( char *a, char *b, struct prpl *protocol )233 {234 if( !strcmp(protocol->name, "oscar") )235 {236 /* AIM, being teh evil, thinks it's cool that users can put237 random spaces in screennames. But "A B" and "AB" are238 equal. Hrmm, okay. */239 while( 1 )240 {241 while( *a == ' ' ) a ++;242 while( *b == ' ' ) b ++;243 244 if( *a && *b )245 {246 if( tolower( *a ) != tolower( *b ) )247 return( 1 );248 }249 else if( *a || *b )250 return( 1 );251 else252 return( 0 );253 254 a ++;255 b ++;256 }257 }258 else259 {260 return( g_strcasecmp( a, b ) );261 }262 }263 264 226 265 227 /* multi.c */ … … 897 859 898 860 /* It might be yourself! */ 899 if( handle_cmp ( handle, b->gc->user->username, b->gc->prpl) == 0 )861 if( b->gc->prpl->cmp_buddynames( handle, b->gc->user->username ) == 0 ) 900 862 { 901 863 u = user_find( b->gc->irc, b->gc->irc->nick );
Note: See TracChangeset
for help on using the changeset viewer.