diff --git a/src/server/text-garb.c b/src/server/text-garb.c index 113ed41afceffc86bd88ae2bedc3af3a5725e6e0..48e1c38580a73748333cc3ebdc69ff8113aa7c57 100644 --- a/src/server/text-garb.c +++ b/src/server/text-garb.c @@ -75,17 +75,24 @@ garb_text(void) switch ( misc->type ) { case recpt: - limit = 24 * 3600 * cached_get_garb_nice( misc->datum.recipient ); - if ( age < limit ) - return FALSE; - + if ( cached_conf_exists( misc->datum.recipient ) ) + { + limit = (24 * 3600 * + cached_get_garb_nice( misc->datum.recipient )); + if ( age < limit ) + return FALSE; + } + break; case cc_recpt: - limit = ( 24 * 3600 - * cached_get_garb_nice( misc->datum.cc_recipient )); - if ( age < limit ) - return FALSE; + if ( cached_conf_exists( misc->datum.cc_recipient )) + { + limit = ( 24 * 3600 + * cached_get_garb_nice( misc->datum.cc_recipient )); + if ( age < limit ) + return FALSE; + } break;