aboutsummaryrefslogtreecommitdiffstats
path: root/irc.c
diff options
context:
space:
mode:
authorulim <a.sporto+bee@gmail.com>2008-08-04 16:45:24 +0200
committerulim <a.sporto+bee@gmail.com>2008-08-04 16:45:24 +0200
commit8661caad555f4306cf36ee37979a7637b05d5cd4 (patch)
tree7e4a7c3d6a700610dd31d109508b07caa3253902 /irc.c
parent4ac647dbcef152bebde7209f7c9cbbf8a5e0fc37 (diff)
parent718e05f842c1af043eb4efded8b0afe429377f70 (diff)
merged in upstream r410.
Only conflict was the correction of jabber normalization which I had already done.
Diffstat (limited to 'irc.c')
-rw-r--r--irc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/irc.c b/irc.c
index c61e289b..bdfd448a 100644
--- a/irc.c
+++ b/irc.c
@@ -25,6 +25,7 @@
#define BITLBEE_CORE
#include "bitlbee.h"
+#include "sock.h"
#include "crypting.h"
#include "ipc.h"
#include "dcc.h"
@@ -314,7 +315,11 @@ void irc_free( irc_t * irc )
g_free( irc );
- if( global.conf->runmode == RUNMODE_INETD || global.conf->runmode == RUNMODE_FORKDAEMON )
+ if( global.conf->runmode == RUNMODE_INETD ||
+ global.conf->runmode == RUNMODE_FORKDAEMON ||
+ ( global.conf->runmode == RUNMODE_DAEMON &&
+ global.listen_socket == -1 &&
+ irc_connection_list == NULL ) )
b_main_quit();
}