summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-29 21:52:52 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-29 21:52:52 +0800
commit721e4f869989ee886e5476295665737a0961a268 (patch)
treef052aba517893e6ee23925875632ae3702170902 /mbbsd
parent2c5ff9b22b0c3c39f588b4fb482cc5ca3e231b25 (diff)
downloadpttbbs-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.c7
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);