summaryrefslogtreecommitdiffstats
path: root/mbbsd/board.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-08-25 21:22:38 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-08-25 21:22:38 +0800
commit00f1e5a84015dac18d4b66f51cd0284afb552be5 (patch)
treeea20f6a42fdec9703c092c67026973a3942f7e78 /mbbsd/board.c
parent2f63f3e91fd9acfa1fdc0d7aa17d172d7c3f9ed4 (diff)
downloadpttbbs-00f1e5a84015dac18d4b66f51cd0284afb552be5.tar
pttbbs-00f1e5a84015dac18d4b66f51cd0284afb552be5.tar.gz
pttbbs-00f1e5a84015dac18d4b66f51cd0284afb552be5.tar.bz2
pttbbs-00f1e5a84015dac18d4b66f51cd0284afb552be5.tar.lz
pttbbs-00f1e5a84015dac18d4b66f51cd0284afb552be5.tar.xz
pttbbs-00f1e5a84015dac18d4b66f51cd0284afb552be5.tar.zst
pttbbs-00f1e5a84015dac18d4b66f51cd0284afb552be5.zip
* remove numlogin from vote/post restriction (confirmed by SYSOPs)
* reason: this variable can be easily cheated by bots and hard to detect/avoid. * this can be replaced by regtime (or, count of 'days' that logged in). * we also plan to remove all references to numlogins in future because it's hard to be kept on web-forum systems. * also refined code layout in pttstruct.h git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4774 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r--mbbsd/board.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 7bfa3d22..5bf159c6 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -311,8 +311,7 @@ b_config(void)
while(!finished) {
// limits
- uint8_t llogin = bp->post_limit_logins,
- lpost = bp->post_limit_posts,
+ uint8_t lpost = bp->post_limit_posts,
lreg = bp->post_limit_regtime,
lbp = bp->post_limit_badpost;
@@ -439,23 +438,11 @@ b_config(void)
if (bp->brdattr & BRD_VOTEBOARD)
{
- llogin = bp->vote_limit_logins;
lpost = bp->vote_limit_posts;
lreg = bp->vote_limit_regtime;
lbp = bp->vote_limit_badpost;
}
- if (llogin)
- {
- move_ansi(ipostres++, COLPOSTRES);
- i = (int)llogin * 10;
- attr = (cuser.numlogins < i) ? 1 : 0;
- if (attr) outs(ANSI_COLOR(1;31));
- prints("上站次數 %d 次以上", i);
- if (attr) outs(ANSI_RESET);
- hasres = 1;
- }
-
if (lpost)
{
move_ansi(ipostres++, COLPOSTRES);