summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-31 11:11:17 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-31 11:11:17 +0800
commit44265c09a84cabfab57392d23a6f28bd70cf5cb4 (patch)
tree6bf2d14a12632c64e452db1f18eb372c5394a291 /mbbsd/bbs.c
parent630ffc04ce1dd9b525f09f8d61de82e3418cdda3 (diff)
downloadpttbbs-44265c09a84cabfab57392d23a6f28bd70cf5cb4.tar
pttbbs-44265c09a84cabfab57392d23a6f28bd70cf5cb4.tar.gz
pttbbs-44265c09a84cabfab57392d23a6f28bd70cf5cb4.tar.bz2
pttbbs-44265c09a84cabfab57392d23a6f28bd70cf5cb4.tar.lz
pttbbs-44265c09a84cabfab57392d23a6f28bd70cf5cb4.tar.xz
pttbbs-44265c09a84cabfab57392d23a6f28bd70cf5cb4.tar.zst
pttbbs-44265c09a84cabfab57392d23a6f28bd70cf5cb4.zip
everyone can't write to whom is invisiable (from article list)
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@261 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 047578e1..d2d616b2 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -1,4 +1,4 @@
-/* $Id: bbs.c,v 1.42 2002/05/30 18:21:04 ptt Exp $ */
+/* $Id: bbs.c,v 1.43 2002/05/31 03:11:17 in2 Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -680,12 +680,12 @@ int invalid_brdname(char *brd) {
}
return 0;
}
-static int b_call_in(int ent, fileheader_t *fhdr, char *direct) {
- userinfo_t *u=search_ulist (searchuser(fhdr->owner));
- if(u &&
- call_in(u,friend_stat(currutmp, u)))
- return FULLUPDATE;
- return DONOTHING;
+static int b_call_in(int ent, fileheader_t *fhdr, char *direct)
+{
+ userinfo_t *u=search_ulist (searchuser(fhdr->owner));
+ if(u && !u->invisible && call_in(u,friend_stat(currutmp, u)) )
+ return FULLUPDATE;
+ return DONOTHING;
}
static void do_reply(fileheader_t *fhdr) {
boardheader_t *bp;