diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-29 21:52:52 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-29 21:52:52 +0800 |
commit | 721e4f869989ee886e5476295665737a0961a268 (patch) | |
tree | f052aba517893e6ee23925875632ae3702170902 /mbbsd | |
parent | 2c5ff9b22b0c3c39f588b4fb482cc5ca3e231b25 (diff) | |
download | pttbbs-721e4f869989ee886e5476295665737a0961a268.tar pttbbs-721e4f869989ee886e5476295665737a0961a268.tar.gz pttbbs-721e4f869989ee886e5476295665737a0961a268.tar.bz2 pttbbs-721e4f869989ee886e5476295665737a0961a268.tar.lz pttbbs-721e4f869989ee886e5476295665737a0961a268.tar.xz pttbbs-721e4f869989ee886e5476295665737a0961a268.tar.zst pttbbs-721e4f869989ee886e5476295665737a0961a268.zip |
add close vote once a day
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@377 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/mbbsd.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 64ab1557..8f7605f7 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1,4 +1,4 @@ -/* $Id: mbbsd.c,v 1.34 2002/06/06 21:34:11 in2 Exp $ */ +/* $Id: mbbsd.c,v 1.35 2002/06/29 13:52:52 ptt Exp $ */ #include "bbs.h" #define SOCKET_QLEN 4 @@ -963,8 +963,11 @@ start_client () user_login (); m_init (); - if (HAVE_PERM (PERM_SYSOP | PERM_BM)) + if (now - SHM->close_vote_time > 86400) // 改為一天一次 + { b_closepolls (); + SHM->close_vote_time = now; + } if (!(cuser.uflag & COLOR_FLAG)) showansi = 0; signal (SIGALRM, SIG_IGN); |