Changeset c998255 for protocols/nogaim.c


Ignore:
Timestamp:
2005-11-15T14:57:38Z (15 years ago)
Author:
Jelmer Vernooij <jelmer@…>
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.
Message:

Merge from Jelmer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    rb135438 rc998255  
    224224        return( NULL );
    225225}
    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 really
    229    should be a compare function inside the PRPL module, but I do it this
    230    way for now because I don't want to touch the Gaim code too much since
    231    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 put
    237                    random spaces in screennames. But "A B" and "AB" are
    238                    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                         else
    252                                 return( 0 );
    253                        
    254                         a ++;
    255                         b ++;
    256                 }
    257         }
    258         else
    259         {
    260                 return( g_strcasecmp( a, b ) );
    261         }
    262 }
    263 
    264226
    265227/* multi.c */
     
    897859       
    898860        /* 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 )
    900862        {
    901863                u = user_find( b->gc->irc, b->gc->irc->nick );
Note: See TracChangeset for help on using the changeset viewer.