summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-07 17:50:45 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-07 17:50:45 +0800
commit2409b9e7fc94c497502e83ff07de7142888a3009 (patch)
tree2119bdbd1dc059866aedc4eb1bd49a50068263e7 /include
parent60b225b0159f59b97ec191474618e9b09e6cfe9a (diff)
downloadpttbbs-2409b9e7fc94c497502e83ff07de7142888a3009.tar
pttbbs-2409b9e7fc94c497502e83ff07de7142888a3009.tar.gz
pttbbs-2409b9e7fc94c497502e83ff07de7142888a3009.tar.bz2
pttbbs-2409b9e7fc94c497502e83ff07de7142888a3009.tar.lz
pttbbs-2409b9e7fc94c497502e83ff07de7142888a3009.tar.xz
pttbbs-2409b9e7fc94c497502e83ff07de7142888a3009.tar.zst
pttbbs-2409b9e7fc94c497502e83ff07de7142888a3009.zip
add post limits for BM.
rename "do_votelimitedit" to "do_limitedit". rename "zerovotelimit.c" to "zero_limits.c". git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2388 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/proto.h2
-rw-r--r--include/pttstruct.h8
2 files changed, 6 insertions, 4 deletions
diff --git a/include/proto.h b/include/proto.h
index 667b9950..005dcb17 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -68,6 +68,7 @@ void ReadSelect(void);
int save_violatelaw(void);
int board_select(void);
int board_digest(void);
+int do_limitedit(int ent, fileheader_t * fhdr, char *direct);
/* board */
#define setutmpbid(bid) currutmp->brc_id=bid;
@@ -668,7 +669,6 @@ int vice_main(void);
/* voteboard */
int do_voteboard(int);
void do_voteboardreply(fileheader_t *fhdr);
-int do_votelimitedit(int ent, fileheader_t * fhdr, char *direct);
/* xyz */
int m_sysop(void);
diff --git a/include/pttstruct.h b/include/pttstruct.h
index fd1acece..a7df3568 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -165,11 +165,13 @@ typedef struct boardheader_t {
char BM[IDLEN * 3 + 3]; /* BMs' userid, token '/' */
unsigned int brdattr; /* board妮┦ */
char chesscountry;
- unsigned char limit_posts; /* 硈竝 : ゅ彻絞计 */
- unsigned char limit_logins; /* 硈竝 : 祅Ω计 */
+ unsigned char vote_limit_posts; /* 硈竝 : ゅ彻絞计 */
+ unsigned char vote_limit_logins; /* 硈竝 : 祅Ω计 */
char pad[1]; /* ⊿ノ */
time_t bupdate; /* note update time */
- char pad2[3]; /* ⊿ノ */
+ unsigned char post_limit_posts; /* 祇ゅ彻 : ゅ彻絞计 */
+ unsigned char post_limit_logins; /* 祇ゅ彻 : 祅Ω计 */
+ char pad2[1]; /* ⊿ノ */
unsigned char bvote; /* タ羭快 Vote 计 */
time_t vtime; /* Vote close time */
unsigned int level; /* 狾舦 */