summaryrefslogtreecommitdiffstats
path: root/mbbsd/board.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-09-14 01:13:33 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-09-14 01:13:33 +0800
commit9bb2b461450f6b953032aac4e57238cdff4e296a (patch)
treed102bbf927737bf989f5916c7c26f3d178734a1c /mbbsd/board.c
parent05dd93de8f37b2fcb2c7ed26c0cb18e550678494 (diff)
downloadpttbbs-9bb2b461450f6b953032aac4e57238cdff4e296a.tar
pttbbs-9bb2b461450f6b953032aac4e57238cdff4e296a.tar.gz
pttbbs-9bb2b461450f6b953032aac4e57238cdff4e296a.tar.bz2
pttbbs-9bb2b461450f6b953032aac4e57238cdff4e296a.tar.lz
pttbbs-9bb2b461450f6b953032aac4e57238cdff4e296a.tar.xz
pttbbs-9bb2b461450f6b953032aac4e57238cdff4e296a.tar.zst
pttbbs-9bb2b461450f6b953032aac4e57238cdff4e296a.zip
* put-back the code to handle numlogin (changed to numlogindays)
* we can enable this after current code base becomes stable git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4838 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r--mbbsd/board.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 082b0903..3b2d8784 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -311,7 +311,8 @@ b_config(void)
while(!finished) {
// limits
- uint8_t lpost = bp->post_limit_posts,
+ uint8_t llogin = bp->post_limit_logins,
+ lpost = bp->post_limit_posts,
lreg = bp->post_limit_regtime,
lbp = bp->post_limit_badpost;
@@ -438,11 +439,25 @@ 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;
}
+#ifdef USE_LOGIN_LIMITS
+ if (llogin)
+ {
+ move_ansi(ipostres++, COLPOSTRES);
+ i = (int)llogin * 10;
+ attr = (cuser.numlogindays < i) ? 1 : 0;
+ if (attr) outs(ANSI_COLOR(1;31));
+ prints(STR_LOGINDAYS " %d " STR_LOGINDAYS_QTY "�H�W", i);
+ if (attr) outs(ANSI_RESET);
+ hasres = 1;
+ }
+#endif
+
if (lpost)
{
move_ansi(ipostres++, COLPOSTRES);