From: Dave West Date: Mon, 17 Mar 2008 21:48:06 +0000 (+0000) Subject: Zero calls is possible, contrary to the comment so now we check for less X-Git-Tag: v7.86~2421 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=782e007c667f9fcddb82c3865dcb622a76511509 Zero calls is possible, contrary to the comment so now we check for less than zero. --- 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.