diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-11-07 17:35:51 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-11-07 17:35:51 +0800 |
commit | 26280b74cf6a8fac9af4ff1fafddb9e29be6ae10 (patch) | |
tree | d217fcbb8bbafb7bcb9bd9693ca6952b5a5561e3 | |
parent | 2fe339599a7c3955298d7eba2e83ec710ae0299a (diff) | |
download | pttbbs-26280b74cf6a8fac9af4ff1fafddb9e29be6ae10.tar pttbbs-26280b74cf6a8fac9af4ff1fafddb9e29be6ae10.tar.gz pttbbs-26280b74cf6a8fac9af4ff1fafddb9e29be6ae10.tar.bz2 pttbbs-26280b74cf6a8fac9af4ff1fafddb9e29be6ae10.tar.lz pttbbs-26280b74cf6a8fac9af4ff1fafddb9e29be6ae10.tar.xz pttbbs-26280b74cf6a8fac9af4ff1fafddb9e29be6ae10.tar.zst pttbbs-26280b74cf6a8fac9af4ff1fafddb9e29be6ae10.zip |
could NOT delete/edit/recommend in MODE_SELECT
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@560 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/bbs.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 0c720dda..cf64faaa 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1,4 +1,4 @@ -/* $Id: bbs.c,v 1.72 2002/11/07 09:13:24 in2 Exp $ */ +/* $Id: bbs.c,v 1.73 2002/11/07 09:35:51 in2 Exp $ */ #include "bbs.h" static void @@ -713,6 +713,10 @@ edit_post(int ent, fileheader_t * fhdr, char *direct) if ((!HAS_PERM(PERM_SYSOP)) && strcmp(fhdr->owner, cuser.userid)) return DONOTHING; + + if( currmode & MODE_SELECT ) + return DONOTHING; + setutmpmode(REEDIT); setdirpath(genbuf, direct, fhdr->filename); local_article = fhdr->filemode & FILE_LOCAL; @@ -1205,6 +1209,9 @@ recommend(int ent, fileheader_t * fhdr, char *direct) char buf[200], path[200], yn[5]; boardheader_t *bp; + if( currmode & MODE_SELECT ) + return DONOTHING; + bp = getbcache(currbid); if( bp->brdattr & BRD_NORECOMMEND ){ vmsg("©êºp, ¥»ªO¸T¤î±ÀÂË"); @@ -1355,6 +1362,9 @@ del_post(int ent, fileheader_t * fhdr, char *direct) int not_owned; boardheader_t *bp; + if( currmode & MODE_SELECT ) + return DONOTHING; + bp = getbcache(currbid); if (strcmp(bp->brdname, "Security") == 0) return DONOTHING; |