summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-02-29 15:55:51 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-02-29 15:55:51 +0800
commit4d1d40e94f273af30d4ca56477bf69132f5294a0 (patch)
tree9da02ab81063c61b6635ad5fac652d471c7ec7af
parentf0c191c96fa0036a7af7d54681f06e294fe028c8 (diff)
downloadpttbbs-4d1d40e94f273af30d4ca56477bf69132f5294a0.tar
pttbbs-4d1d40e94f273af30d4ca56477bf69132f5294a0.tar.gz
pttbbs-4d1d40e94f273af30d4ca56477bf69132f5294a0.tar.bz2
pttbbs-4d1d40e94f273af30d4ca56477bf69132f5294a0.tar.lz
pttbbs-4d1d40e94f273af30d4ca56477bf69132f5294a0.tar.xz
pttbbs-4d1d40e94f273af30d4ca56477bf69132f5294a0.tar.zst
pttbbs-4d1d40e94f273af30d4ca56477bf69132f5294a0.zip
turn up the vote duration
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1571 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/vote.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/vote.c b/mbbsd/vote.c
index 0f4a26e6..fa2a52e6 100644
--- a/mbbsd/vote.c
+++ b/mbbsd/vote.c
@@ -738,13 +738,13 @@ vote_maintain(char *bname)
unlink(buf);
}
clear();
- getdata(0, 0, "此次投票進行幾天 (一到十天)?", inbuf, 4, DOECHO);
+ getdata(0, 0, "此次投票進行幾天 (一到三十天)?", inbuf, 4, DOECHO);
closetime = atoi(inbuf);
if (closetime <= 0)
closetime = 1;
- else if (closetime > 10)
- closetime = 10;
+ else if (closetime > 30)
+ closetime = 30;
closetime = closetime * 86400 + now;
setbfile(buf, bname, STR_new_control);