aboutsummaryrefslogtreecommitdiffstats
path: root/unix.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2007-08-30 23:30:27 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2007-08-30 23:30:27 +0100
commit60c1a4e76a343c0dbc19690b486190681265db4c (patch)
tree3d6efecb3d707d8c49ba009a3122b737425e0e13 /unix.c
parent8ad90fbd65d544ac207d52780499df76db9adc6f (diff)
Changed the order in which things are loaded a little bit so
global.conf->plugindir is actually filled in before we call nogaim_init().
Diffstat (limited to 'unix.c')
-rw-r--r--unix.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/unix.c b/unix.c
index 2be16b2b..0abf43ea 100644
--- a/unix.c
+++ b/unix.c
@@ -46,19 +46,18 @@ int main( int argc, char *argv[], char **envp )
memset( &global, 0, sizeof( global_t ) );
- b_main_init();
log_init();
- nogaim_init();
-
- srand( time( NULL ) ^ getpid() );
-
CONF_FILE = g_strdup( CONF_FILE_DEF );
- global.helpfile = g_strdup( HELP_FILE );
-
global.conf = conf_load( argc, argv );
if( global.conf == NULL )
return( 1 );
+ b_main_init();
+ nogaim_init();
+
+ srand( time( NULL ) ^ getpid() );
+ global.helpfile = g_strdup( HELP_FILE );
+
if( global.conf->runmode == RUNMODE_INETD )
{
i = bitlbee_inetd_init();