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
commit5e5cc459e6b23a3c024e4ae4fa76bd5c3955f36c (patch)
treecd15fed7f746ce963ef171c916caeea107abb674
parent0149287ce86b2208519d31051e055c905d93c7d7 (diff)
downloadpttbbs-5e5cc459e6b23a3c024e4ae4fa76bd5c3955f36c.tar
pttbbs-5e5cc459e6b23a3c024e4ae4fa76bd5c3955f36c.tar.gz
pttbbs-5e5cc459e6b23a3c024e4ae4fa76bd5c3955f36c.tar.bz2
pttbbs-5e5cc459e6b23a3c024e4ae4fa76bd5c3955f36c.tar.lz
pttbbs-5e5cc459e6b23a3c024e4ae4fa76bd5c3955f36c.tar.xz
pttbbs-5e5cc459e6b23a3c024e4ae4fa76bd5c3955f36c.tar.zst
pttbbs-5e5cc459e6b23a3c024e4ae4fa76bd5c3955f36c.zip
don't reduce bm's money in digest mode
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@993 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/bbs.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index b89cbbef..b5e5c454 100644
--- a/mbbsd/bbs.c
+++ b/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;
}