aboutsummaryrefslogtreecommitdiffstats
path: root/unix.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2008-06-30 00:41:39 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2008-06-30 00:41:39 +0100
commitf5d1b3185140e690a6503b9e68c7ea28655b405e (patch)
treef679a139ecca219aa2c7a07adcaefd3000c8c801 /unix.c
parentcd63d5822e76a6126bb3017567c9ce2869a44e0b (diff)
parent913545e54123296fb8229ecad2c77a6e899e0242 (diff)
Merging changes from Jelmer: It's now possible to cross-compile a Windows
version of BitlBee from Linux. No working SSL support yet though!
Diffstat (limited to 'unix.c')
-rw-r--r--unix.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/unix.c b/unix.c
index 336b49c4..56b0ab46 100644
--- a/unix.c
+++ b/unix.c
@@ -59,12 +59,18 @@ int main( int argc, char *argv[] )
if( global.conf->runmode == RUNMODE_INETD )
{
+ log_link( LOGLVL_ERROR, LOGOUTPUT_IRC );
+ log_link( LOGLVL_WARNING, LOGOUTPUT_IRC );
+
i = bitlbee_inetd_init();
log_message( LOGLVL_INFO, "Bitlbee %s starting in inetd mode.", BITLBEE_VERSION );
}
else if( global.conf->runmode == RUNMODE_DAEMON )
{
+ log_link( LOGLVL_ERROR, LOGOUTPUT_SYSLOG );
+ log_link( LOGLVL_WARNING, LOGOUTPUT_SYSLOG );
+
i = bitlbee_daemon_init();
log_message( LOGLVL_INFO, "Bitlbee %s starting in daemon mode.", BITLBEE_VERSION );
}
@@ -207,3 +213,5 @@ double gettime()
gettimeofday( time, 0 );
return( (double) time->tv_sec + (double) time->tv_usec / 1000000 );
}
+
+