diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-06-02 22:49:04 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-06-02 22:49:04 +0800 |
commit | 641d2c20b6328487b0d74e6474e29a15fd4884ed (patch) | |
tree | 0d15051a313dbf30185209d8782ab8a4a4342809 | |
parent | d27183540fee8c1a21f73d0582b1fef5eba4fcd1 (diff) | |
download | pttbbs-641d2c20b6328487b0d74e6474e29a15fd4884ed.tar pttbbs-641d2c20b6328487b0d74e6474e29a15fd4884ed.tar.gz pttbbs-641d2c20b6328487b0d74e6474e29a15fd4884ed.tar.bz2 pttbbs-641d2c20b6328487b0d74e6474e29a15fd4884ed.tar.lz pttbbs-641d2c20b6328487b0d74e6474e29a15fd4884ed.tar.xz pttbbs-641d2c20b6328487b0d74e6474e29a15fd4884ed.tar.zst pttbbs-641d2c20b6328487b0d74e6474e29a15fd4884ed.zip |
let foreigner be able to post in PttForeign
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@923 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/bbs.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index 80ec2767..5accfca2 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -1,4 +1,4 @@ -/* $Id: bbs.c,v 1.96 2003/05/26 05:29:39 in2 Exp $ */ +/* $Id: bbs.c,v 1.97 2003/06/02 14:49:04 victor Exp $ */ #include "bbs.h" static int recommend(int ent, fileheader_t * fhdr, char *direct); @@ -453,7 +453,12 @@ do_general() bp = getbcache(currbid); clear(); - if (!(currmode & MODE_POST)) { + if (!(currmode & MODE_POST) +#ifdef FOREIGN_REG + // 不是外籍使用者在 PttForeign 板 + && !((cuser.uflag2 & FOREIGN) && strcmp(bp->brdname, "PttForeign")) +#endif + ) { move(5, 10); outs("對不起,您目前無法在此發表文章!"); pressanykey(); |