summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/cal.c4
-rw-r--r--mbbsd/talk.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/mbbsd/cal.c b/mbbsd/cal.c
index a5526783..139492e9 100644
--- a/mbbsd/cal.c
+++ b/mbbsd/cal.c
@@ -1,4 +1,4 @@
-/* $Id: cal.c,v 1.3 2002/05/02 06:20:40 lwms Exp $ */
+/* $Id: cal.c,v 1.4 2002/05/02 06:27:40 lwms Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -398,7 +398,7 @@ int p_give() {
log_file(FN_MONEY, genbuf);
genbuf[0] = 'n';
getdata(3, 0, "要自行書寫紅包袋嗎?[y/N]", genbuf, 2, LCECHO);
- mail_redenvelop(cuser.userid, id, money, genbuf[0]);
+ mail_redenvelop(cuser.userid, id, money - tax, genbuf[0]);
vice(tax, "贈與稅");
}
return 0;
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 6da4a0d2..643a3d86 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -1,4 +1,4 @@
-/* $Id: talk.c,v 1.24 2002/05/02 06:20:40 lwms Exp $ */
+/* $Id: talk.c,v 1.25 2002/05/02 06:27:40 lwms Exp $ */
#include <stdio.h>
#include <string.h>
#include <errno.h>
@@ -2108,7 +2108,7 @@ static void pickup_user(void)
uentp->userid, ch,
ctime(&currutmp->lastact));
log_file(FN_MONEY, genbuf);
- mail_redenvelop(cuser.userid, uentp->userid, ch, 'Y');
+ mail_redenvelop(cuser.userid, uentp->userid, ch - give_tax(ch), 'Y');
vice(give_tax(ch), "贈與稅");
}
}