From 7d3ef7bbfd09ce0a8d8dbdb651fdaa862f75af21 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 10 Jun 2008 05:04:44 +0200 Subject: Fix undefined references. --- irc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'irc.c') diff --git a/irc.c b/irc.c index a6220140..c850b65c 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" -- cgit v1.2.3 From 565a1eaa8b36ca64a7806e6ad74a9a26495c0c6e Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sun, 29 Jun 2008 10:35:41 +0100 Subject: Added the DEAF command, which makes the daemon stop listening for new connections. This makes it easier to upgrade a BitlBee without having to disconnect all current users immediately. Closes #428. --- irc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'irc.c') diff --git a/irc.c b/irc.c index a6220140..b98f7048 100644 --- a/irc.c +++ b/irc.c @@ -313,7 +313,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(); } -- cgit v1.2.3