Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • unix.c

    r764c7d1 reeb85a8  
    2727#include "commands.h"
    2828#include "crypting.h"
    29 #include "otr.h"
    3029#include "protocols/nogaim.h"
    3130#include "help.h"
     
    4847       
    4948        log_init();
    50         CONF_FILE = g_strdup( CONF_FILE_DEF );
     49        global.conf_file = g_strdup( CONF_FILE_DEF );
    5150        global.conf = conf_load( argc, argv );
    5251        if( global.conf == NULL )
     
    5554        b_main_init();
    5655        nogaim_init();
    57         otr_init();
    5856       
    5957        srand( time( NULL ) ^ getpid() );
     
    126124        if( !getuid() || !geteuid() )
    127125                log_message( LOGLVL_WARNING, "BitlBee is running with root privileges. Why?" );
    128         if( help_init( &(global.help), global.helpfile ) == NULL )
     126        if( help_init( &global.help, global.helpfile ) == NULL )
    129127                log_message( LOGLVL_WARNING, "Error opening helpfile %s.", HELP_FILE );
    130128       
    131129        b_main_run();
     130       
     131        /* Mainly good for restarting, to make sure we close the help.txt fd. */
     132        help_free( &global.help );
    132133       
    133134        if( global.restart )
Note: See TracChangeset for help on using the changeset viewer.