Changeset e248c7f for protocols


Ignore:
Timestamp:
2009-10-12T22:23:49Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
4524f66
Parents:
dd0d57b1
Message:

Automatically try prpl-$proto if $proto doesn't exist, and disable native
protocol modules if purple is enabled; they don't go together very well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    rdd0d57b1 re248c7f  
    102102{
    103103        GList *gl;
    104         for (gl = protocols; gl; gl = gl->next)
     104       
     105        for( gl = protocols; gl; gl = gl->next )
    105106        {
    106107                struct prpl *proto = gl->data;
    107                 if(!g_strcasecmp(proto->name, name))
     108               
     109                if( g_strcasecmp( proto->name, name ) == 0 )
    108110                        return proto;
     111
     112#ifdef WITH_PURPLE
     113                /* I know, hardcoding is evil, but that doesn't make it
     114                   impossible. :-) */
     115                if( g_strncasecmp( proto->name, "prpl-", 5 ) == 0 &&
     116                    g_strcasecmp( proto->name + 5, name ) == 0 )
     117                        return proto;
     118#endif
    109119        }
     120       
    110121        return NULL;
    111122}
Note: See TracChangeset for help on using the changeset viewer.