From 77a06879f04be94cddf1f1420b06742303225697 Mon Sep 17 00:00:00 2001 From: piaip Date: Fri, 17 Feb 2012 06:10:44 +0000 Subject: ViolateLaw accounts must wait until full expire cycle. git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5565 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/register.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pttbbs/mbbsd/register.c b/pttbbs/mbbsd/register.c index 4784f803..3afb08bf 100644 --- a/pttbbs/mbbsd/register.c +++ b/pttbbs/mbbsd/register.c @@ -246,7 +246,7 @@ compute_user_value(const userec_t * urec, time4_t clock) return 30 - value; #endif - return (urec->userlevel & PERM_LOGINOK ? + return ((urec->userlevel & (PERM_LOGINOK|PERM_VIOLATELAW)) ? KEEP_DAYS_REGGED : KEEP_DAYS_UNREGGED) * 24 * 60 - value; } -- cgit v1.2.3