Changeset 6967d01 for protocols


Ignore:
Timestamp:
2009-10-14T21:36:09Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
b3117f2
Parents:
4524f66
Message:

I think daemon mode and libpurple won't go together very well for now since
libpurple seems to keep track of a merged contact list. For now people
shouldn't be trying this combination.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/purple/purple.c

    r4524f66 r6967d01  
    133133{
    134134        struct im_connection *ic = imcb_new( acc );
     135        static void *irc_check = NULL;
    135136        PurpleAccount *pa;
     137       
     138        if( irc_check != NULL && irc_check != acc->irc )
     139        {
     140                irc_usermsg( acc->irc, "Daemon mode detected. Do *not* try to use libpurple in daemon mode! Please use inetd or ForkDaemon mode instead." );
     141                return;
     142        }
     143        irc_check = acc->irc;
    136144       
    137145        /* For now this is needed in the _connected() handlers if using
     
    385393static void prplcb_debug_print( PurpleDebugLevel level, const char *category, const char *arg_s )
    386394{
    387         printf( "DEBUG %s: %s", category, arg_s );
     395        fprintf( stderr, "DEBUG %s: %s", category, arg_s );
    388396}
    389397
Note: See TracChangeset for help on using the changeset viewer.