summaryrefslogtreecommitdiffstats
path: root/mbbsd/vote.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/vote.c')
-rw-r--r--mbbsd/vote.c11
1 files changed, 8 insertions, 3 deletions
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