summaryrefslogtreecommitdiffstats
path: root/mbbsd/talk.c
diff options
context:
space:
mode:
authorlwms <lwms@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-02 14:20:40 +0800
committerlwms <lwms@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-02 14:20:40 +0800
commitcc31f6faeba08fbc6769f6d0c6fb21be10f364de (patch)
tree5bfed0651e32a25c6d51027d50129137d5e19409 /mbbsd/talk.c
parent1ff60e643a2e1d2f8f1274fc0fe6d76d5a607ee5 (diff)
downloadpttbbs-cc31f6faeba08fbc6769f6d0c6fb21be10f364de.tar
pttbbs-cc31f6faeba08fbc6769f6d0c6fb21be10f364de.tar.gz
pttbbs-cc31f6faeba08fbc6769f6d0c6fb21be10f364de.tar.bz2
pttbbs-cc31f6faeba08fbc6769f6d0c6fb21be10f364de.tar.lz
pttbbs-cc31f6faeba08fbc6769f6d0c6fb21be10f364de.tar.xz
pttbbs-cc31f6faeba08fbc6769f6d0c6fb21be10f364de.tar.zst
pttbbs-cc31f6faeba08fbc6769f6d0c6fb21be10f364de.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@139 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r--mbbsd/talk.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 463f1f71..6da4a0d2 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -1,4 +1,4 @@
-/* $Id: talk.c,v 1.23 2002/04/28 19:35:29 in2 Exp $ */
+/* $Id: talk.c,v 1.24 2002/05/02 06:20:40 lwms Exp $ */
#include <stdio.h>
#include <string.h>
#include <errno.h>
@@ -2100,7 +2100,7 @@ static void pickup_user(void)
if (ch > cuser.money)
outs("\033[41m 現金不足~~\033[m");
else{
- deumoney(uentp->uid, ch);
+ deumoney(uentp->uid, ch - give_tax(ch));
sprintf(genbuf, "\033[44m 嗯..還剩下 %d 錢.."
"\033[m", demoney(-1*ch));
outs(genbuf);
@@ -2109,6 +2109,7 @@ static void pickup_user(void)
ctime(&currutmp->lastact));
log_file(FN_MONEY, genbuf);
mail_redenvelop(cuser.userid, uentp->userid, ch, 'Y');
+ vice(give_tax(ch), "贈與稅");
}
}
else{