From 2409b9e7fc94c497502e83ff07de7142888a3009 Mon Sep 17 00:00:00 2001 From: wens Date: Fri, 7 Jan 2005 09:50:45 +0000 Subject: 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 --- mbbsd/mail.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mbbsd/mail.c') diff --git a/mbbsd/mail.c b/mbbsd/mail.c index b9d19440..cb29f976 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -1043,6 +1043,14 @@ mail_cross_post(int ent, fileheader_t * fhdr, char *direct) if (*xboard == '\0' || !haspostperm(xboard)) return TITLE_REDRAW; + ent = getbnum(xboard); + if ( cuser.numlogins < ((unsigned int)(bcache[ent - 1].post_limit_logins) * 10) || + cuser.numposts < ((unsigned int)(bcache[ent - 1].post_limit_posts) * 10) ) { + move(5, 10); + vmsg("你的上站數/文章數不足喔!"); + return FULLUPDATE; + } + ent = 1; if (HAS_PERM(PERM_SYSOP) || !strcmp(fhdr->owner, cuser.userid)) { getdata(2, 0, "(1)原文轉載 (2)舊轉錄格式?[1] ", -- cgit v1.2.3