aboutsummaryrefslogtreecommitdiffstats
path: root/bitlbee.c
diff options
context:
space:
mode:
Diffstat (limited to 'bitlbee.c')
-rw-r--r--bitlbee.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bitlbee.c b/bitlbee.c
index 93754d05..ca783cf6 100644
--- a/bitlbee.c
+++ b/bitlbee.c
@@ -361,10 +361,12 @@ static gboolean bitlbee_io_new_client( gpointer data, gint fd, b_input_condition
gboolean bitlbee_shutdown( gpointer data, gint fd, b_input_condition cond )
{
+ /* Send the message here with now=TRUE to ensure it arrives */
+ irc_write_all( TRUE, "ERROR :Closing link: BitlBee server shutting down" );
+
/* Try to save data for all active connections (if desired). */
while( irc_connection_list != NULL )
- irc_abort( irc_connection_list->data, TRUE,
- "BitlBee server shutting down" );
+ irc_abort( irc_connection_list->data, TRUE, NULL );
/* We'll only reach this point when not running in inetd mode: */
b_main_quit();