summaryrefslogtreecommitdiffstats
path: root/mbbsd/cal.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-03 23:19:01 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-03 23:19:01 +0800
commit923905e83ad2d075f0d40125e8acbd0ca88ea938 (patch)
treebd8287047cf35c6c7e1e98057876d7be07e470a3 /mbbsd/cal.c
parent79890093f845d2c70ffec2e0699700380e623cd8 (diff)
downloadpttbbs-923905e83ad2d075f0d40125e8acbd0ca88ea938.tar
pttbbs-923905e83ad2d075f0d40125e8acbd0ca88ea938.tar.gz
pttbbs-923905e83ad2d075f0d40125e8acbd0ca88ea938.tar.bz2
pttbbs-923905e83ad2d075f0d40125e8acbd0ca88ea938.tar.lz
pttbbs-923905e83ad2d075f0d40125e8acbd0ca88ea938.tar.xz
pttbbs-923905e83ad2d075f0d40125e8acbd0ca88ea938.tar.zst
pttbbs-923905e83ad2d075f0d40125e8acbd0ca88ea938.zip
in log_file(), use LOG_VF if need to vfprintf().
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1921 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/cal.c')
-rw-r--r--mbbsd/cal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/cal.c b/mbbsd/cal.c
index a2b1ae48..a59eb9f9 100644
--- a/mbbsd/cal.c
+++ b/mbbsd/cal.c
@@ -64,7 +64,7 @@ vice(int money, char *item)
demoney(-money);
setuserfile(buf, VICE_NEW);
- log_file(buf, 1, "%8.8d\n", viceserial);
+ log_file(buf, LOG_CREAT | LOG_VF, "%8.8d\n", viceserial);
snprintf(buf, sizeof(buf),
"%s 花了%d$ 編號[%08d]", item, money, viceserial);
mail_id(cuser.userid, buf, "etc/vice.txt", "Ptt經濟部");
@@ -374,7 +374,7 @@ p_give()
return 0; /* 繳完稅就沒錢給了 */
deumoney(searchuser(id), money - tax);
demoney(-money);
- log_file(FN_MONEY,1, "%s\t給%s\t%d\t%s",
+ log_file(FN_MONEY, LOG_CREAT | LOG_VF, "%s\t給%s\t%d\t%s",
cuser.userid, id, money - tax, ctime(&now));
mail_redenvelop(cuser.userid, id, money - tax, getans("要自行書寫紅包袋嗎?[y/N]"));
}