From 9bb2b461450f6b953032aac4e57238cdff4e296a Mon Sep 17 00:00:00 2001 From: piaip Date: Sun, 13 Sep 2009 17:13:33 +0000 Subject: * put-back the code to handle numlogin (changed to numlogindays) * we can enable this after current code base becomes stable git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4838 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/vote.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'mbbsd/vote.c') diff --git a/mbbsd/vote.c b/mbbsd/vote.c index 030c6704..b54cd6b1 100644 --- a/mbbsd/vote.c +++ b/mbbsd/vote.c @@ -646,9 +646,14 @@ vote_maintain(const char *bname) closetime = atoi(inbuf); // borrow variable } while (closetime < 0 || closetime > 120); fprintf(fp, "%d\n", now - (MONTH_SECONDS * closetime)); - - fprintf(fp, "%d\n", 0); // was: numlogins - + closetime = 0; +#ifdef USE_LOGIN_LIMITS + do { + getdata(6, 0, STR_LOGINDAYS "¤U­­", inbuf, 6, DOECHO); + closetime = atoi(inbuf); // borrow variable + } while (closetime < 0); +#endif + fprintf(fp, "%d\n", closetime); do { getdata(6, 0, "¤å³¹½g¼Æ¤U­­", inbuf, 6, DOECHO); closetime = atoi(inbuf); // borrow variable -- cgit v1.2.3