Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • unix.c

    rcd63d58 r823de9d  
    2727#include "commands.h"
    2828#include "crypting.h"
     29#include "otr.h"
    2930#include "protocols/nogaim.h"
    3031#include "help.h"
    3132#include "ipc.h"
     33#include "lib/ssl_client.h"
    3234#include <signal.h>
    3335#include <unistd.h>
     
    5456        b_main_init();
    5557        nogaim_init();
     58        /* Ugly Note: libotr and gnutls both use libgcrypt. libgcrypt
     59           has a process-global config state whose initialization happpens
     60           twice if libotr and gnutls are used together. libotr installs custom
     61           memory management functions for libgcrypt while our gnutls module
     62           uses the defaults. Therefore we initialize OTR after SSL. *sigh* */
     63        ssl_init();
     64        otr_init();
    5665       
    5766        srand( time( NULL ) ^ getpid() );
     
    6069        if( global.conf->runmode == RUNMODE_INETD )
    6170        {
     71                log_link( LOGLVL_ERROR, LOGOUTPUT_IRC );
     72                log_link( LOGLVL_WARNING, LOGOUTPUT_IRC );
     73       
    6274                i = bitlbee_inetd_init();
    6375                log_message( LOGLVL_INFO, "Bitlbee %s starting in inetd mode.", BITLBEE_VERSION );
     
    6678        else if( global.conf->runmode == RUNMODE_DAEMON )
    6779        {
     80                log_link( LOGLVL_ERROR, LOGOUTPUT_SYSLOG );
     81                log_link( LOGLVL_WARNING, LOGOUTPUT_SYSLOG );
     82
    6883                i = bitlbee_daemon_init();
    6984                log_message( LOGLVL_INFO, "Bitlbee %s starting in daemon mode.", BITLBEE_VERSION );
Note: See TracChangeset for help on using the changeset viewer.