From 19ac7dc362b3d41ad601360eaccbd607bd0816f1 Mon Sep 17 00:00:00 2001 From: ptt Date: Sun, 30 Jun 2002 04:04:35 +0000 Subject: *** empty log message *** git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@388 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- util/toplazyBM.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/util/toplazyBM.c b/util/toplazyBM.c index 68fd0349..736379f4 100644 --- a/util/toplazyBM.c +++ b/util/toplazyBM.c @@ -1,4 +1,4 @@ -/* $Id: toplazyBM.c,v 1.13 2002/06/30 03:47:35 ptt Exp $ */ +/* $Id: toplazyBM.c,v 1.14 2002/06/30 04:04:35 ptt Exp $ */ #include "bbs.h" #define OUTFILE BBSHOME "/etc/toplazyBM" #define FIREFILE BBSHOME "/etc/firelazyBM" @@ -99,7 +99,7 @@ int main(int argc, char *argv[]) bmid=getuser(p); bms[index].bmname = p; bms[index].flag = 0; - if ((now-xuser.lastlogin)>30*86400 + if ((now-xuser.lastlogin)>=45*86400 && !(xuser.userlevel & PERM_SYSOP)) { lostbms[j].bmname = p; @@ -107,8 +107,8 @@ int main(int argc, char *argv[]) lostbms[j].ctitle = allbrd[i].title; lostbms[j].lostdays = (now-xuser.lastlogin)/86400; - //超過六十天 免職 - if(lostbms[j].lostdays > 60){ + //超過90天 免職 + if(lostbms[j].lostdays > 90){ xuser.userlevel &= ~PERM_BM; bms[index].flag = 1; flag = 1; @@ -140,7 +140,7 @@ int main(int argc, char *argv[]) //write to the etc/toplazyBM for ( i=0; i 60){ + if( lostbms[i].lostdays > 90){ fprintf(firef, "%-*.*s%-*.*s%-*.*s%3d天沒上站\n", IDLEN, IDLEN, lostbms[i].title, BTLEN-10, BTLEN-10, lostbms[i].ctitle, IDLEN,IDLEN, lostbms[i].bmname,lostbms[i].lostdays); @@ -164,7 +164,7 @@ int main(int argc, char *argv[]) lostdays = lostbms[i].lostdays; - if( (lostdays != 30) && (lostdays != 45) && (lostdays <= 60)) + if( (lostdays != 45) && (lostdays <= 60)) continue; sprintf(genbuf, BBSHOME "/home/%c/%s", -- cgit v1.2.3