summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-06-02 22:49:04 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-06-02 22:49:04 +0800
commit3017c72191d1e4a3ca13a47134b3b0ec9f1d7f07 (patch)
treef5511413a6bb313d603f4ef435b5900dd14e64fb
parente78ada9ed9198b40e57a6ad31062e07578ae81e8 (diff)
downloadpttbbs-3017c72191d1e4a3ca13a47134b3b0ec9f1d7f07.tar
pttbbs-3017c72191d1e4a3ca13a47134b3b0ec9f1d7f07.tar.gz
pttbbs-3017c72191d1e4a3ca13a47134b3b0ec9f1d7f07.tar.bz2
pttbbs-3017c72191d1e4a3ca13a47134b3b0ec9f1d7f07.tar.lz
pttbbs-3017c72191d1e4a3ca13a47134b3b0ec9f1d7f07.tar.xz
pttbbs-3017c72191d1e4a3ca13a47134b3b0ec9f1d7f07.tar.zst
pttbbs-3017c72191d1e4a3ca13a47134b3b0ec9f1d7f07.zip
let foreigner be able to post in PttForeign
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@923 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/bbs.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 80ec2767..5accfca2 100644
--- a/mbbsd/bbs.c
+++ b/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();