summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-10-19 19:32:34 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-10-19 19:32:34 +0800
commit036d8d99880e07ecf0ff33aa4c5746e76e8e4637 (patch)
tree869ede9c99c33149e124acb97d56499f93adb559
parent43b2494d6d44525f0e0fc0f0ede1aa69754deb92 (diff)
downloadpttbbs-036d8d99880e07ecf0ff33aa4c5746e76e8e4637.tar
pttbbs-036d8d99880e07ecf0ff33aa4c5746e76e8e4637.tar.gz
pttbbs-036d8d99880e07ecf0ff33aa4c5746e76e8e4637.tar.bz2
pttbbs-036d8d99880e07ecf0ff33aa4c5746e76e8e4637.tar.lz
pttbbs-036d8d99880e07ecf0ff33aa4c5746e76e8e4637.tar.xz
pttbbs-036d8d99880e07ecf0ff33aa4c5746e76e8e4637.tar.zst
pttbbs-036d8d99880e07ecf0ff33aa4c5746e76e8e4637.zip
recentpay in util
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5129 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/util/openticket.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/pttbbs/util/openticket.c b/pttbbs/util/openticket.c
index b7577151..dad89677 100644
--- a/pttbbs/util/openticket.c
+++ b/pttbbs/util/openticket.c
@@ -105,14 +105,12 @@ int main(int argc, char **argv)
oldm = moneyof(uid);
deumoney(uid, money * num);
newm = moneyof(uid);
-
-#ifdef FN_RECENTVICE
- // check the format in mbbsd/cal.c:do_vice
- sethomefile(genbuf, userid, FN_RECENTVICE);
- log_filef(genbuf, LOG_CREAT, "%s %s $%d ($%d => $%d) %s (%s x %d)\n",
- Cdatelite(&now), "¦¬¤J",
- money * num, oldm, newm, "½ä½L¤¤¼ú", betname[mybet], num);
-#endif
+ {
+ char reason[256];
+ sprintf(reason, "½ä½L¤¤¼ú (%s x %d)", betname[mybet], num);
+ sethomefile(genbuf, userid, FN_RECENTPAY);
+ log_payment(genbuf, money * num, oldm, newm, reason);
+ }
sethomepath(genbuf, userid);
stampfile(genbuf, &mymail);
strcpy(mymail.owner, BBSNAME);