Skip to content
Snippets Groups Projects
Commit 76f636d6 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(garb_text): Don't remove any text if param.garb_enable is false.

parent 44b5ef9a
No related branches found
No related tags found
No related merge requests found
/* /*
* $Id: text-garb.c,v 0.18 1994/04/05 08:05:13 ceder Exp $ * $Id: text-garb.c,v 0.19 1995/10/07 14:40:31 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994 Lysator Academic Computer Association. * Copyright (C) 1991, 1992, 1993, 1994 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* Author: Per Cederqvist. * Author: Per Cederqvist.
*/ */
static char *rcsid = "$Id: text-garb.c,v 0.18 1994/04/05 08:05:13 ceder Exp $"; static char *rcsid = "$Id: text-garb.c,v 0.19 1995/10/07 14:40:31 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -106,6 +106,9 @@ garb_text(void) ...@@ -106,6 +106,9 @@ garb_text(void)
double age; /* How many seconds is this text? */ double age; /* How many seconds is this text? */
double limit = 24 * 3600; double limit = 24 * 3600;
if (param.garb_enable == FALSE)
return TRUE;
if ( last_checked == 0 ) if ( last_checked == 0 )
{ {
if ( last_start != NO_TIME if ( last_start != NO_TIME
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment