From 782e007c667f9fcddb82c3865dcb622a76511509 Mon Sep 17 00:00:00 2001 From: Dave West Date: Mon, 17 Mar 2008 21:48:06 +0000 Subject: [PATCH] Zero calls is possible, contrary to the comment so now we check for less than zero. --- citadel/modules/expire/serv_expire.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/citadel/modules/expire/serv_expire.c b/citadel/modules/expire/serv_expire.c index 64defd28b..2922fb12a 100644 --- a/citadel/modules/expire/serv_expire.c +++ b/citadel/modules/expire/serv_expire.c @@ -436,8 +436,9 @@ void do_user_purge(struct ctdluser *us, void *data) { /* 0 calls is impossible. If there are 0 calls, it must * be a corrupted record, so purge it. + * Actually it is possible if an Aide created the user so now we check for less than 0 (DRW) */ - if (us->timescalled == 0) purge = 1; + if (us->timescalled < 0) purge = 1; /* User number 0, as well as any negative user number, is * also impossible. -- 2.30.2