From 749cbf02649e66d486a98bbe4ae9ac9d620f9ce9 Mon Sep 17 00:00:00 2001 From: victor Date: Mon, 16 Apr 2007 13:27:07 +0000 Subject: CheckPostPerm depends on currboard. However, it's undefined in your mailbox. There is another haspostperm() after that, let me assume it's enough. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3506 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index a7160a0c..3261affa 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -213,7 +213,9 @@ set_board(void) } } -/* check post perm on demand, no double checks in current board */ +/* check post perm on demand, no double checks in current board + * currboard MUST be defined! + * XXX can we replace currboard with currbid ? */ int CheckPostPerm(void) { @@ -1432,10 +1434,6 @@ cross_post(int ent, fileheader_t * fhdr, const char *direct) int author; boardheader_t *bp; - if (!CheckPostPerm()) { - vmsg("對不起,您目前無法轉錄文章!"); - return FULLUPDATE; - } move(2, 0); clrtoeol(); move(1, 0); -- cgit v1.2.3