summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-02 01:39:27 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-02 01:39:27 +0800
commitd52d93b523043d20e7bdef723dc120f38eade56b (patch)
treeee72e1a1a9b2034c3ef50032c741f5620c34a03b
parentecdde03bbb9f1a0b6521e2579ac6e3ba35b2be6a (diff)
downloadpttbbs-d52d93b523043d20e7bdef723dc120f38eade56b.tar
pttbbs-d52d93b523043d20e7bdef723dc120f38eade56b.tar.gz
pttbbs-d52d93b523043d20e7bdef723dc120f38eade56b.tar.bz2
pttbbs-d52d93b523043d20e7bdef723dc120f38eade56b.tar.lz
pttbbs-d52d93b523043d20e7bdef723dc120f38eade56b.tar.xz
pttbbs-d52d93b523043d20e7bdef723dc120f38eade56b.tar.zst
pttbbs-d52d93b523043d20e7bdef723dc120f38eade56b.zip
don't reduce bm's money in digest mode
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@993 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/bbs.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c
index b89cbbef..b5e5c454 100644
--- a/pttbbs/mbbsd/bbs.c
+++ b/pttbbs/mbbsd/bbs.c
@@ -1,4 +1,4 @@
-/* $Id: bbs.c,v 1.101 2003/06/28 08:47:45 kcwu Exp $ */
+/* $Id: bbs.c,v 1.102 2003/07/01 17:39:27 victor Exp $ */
#include "bbs.h"
static int recommend(int ent, fileheader_t * fhdr, char *direct);
@@ -1466,14 +1466,16 @@ del_post(int ent, fileheader_t * fhdr, char *direct)
if (!not_owned && strcmp(currboard, "Test")) {
if (cuser.numposts)
cuser.numposts--;
- move(b_lines - 1, 0);
- clrtoeol();
- demoney(-fhdr->money);
- passwd_update(usernum, &cuser); /* post 數 */
- prints("%s,您的文章減為 %d 篇,支付清潔費 %d 銀", msg_del_ok,
- cuser.numposts, fhdr->money);
- refresh();
- pressanykey();
+ if (!(currmode & MODE_DIGEST && is_BM(cuser.userid))){
+ move(b_lines - 1, 0);
+ clrtoeol();
+ demoney(-fhdr->money);
+ passwd_update(usernum, &cuser); /* post 數 */
+ prints("%s,您的文章減為 %d 篇,支付清潔費 %d 銀", msg_del_ok,
+ cuser.numposts, fhdr->money);
+ refresh();
+ pressanykey();
+ }
}
return DIRCHANGED;
}