From 923905e83ad2d075f0d40125e8acbd0ca88ea938 Mon Sep 17 00:00:00 2001 From: in2 Date: Mon, 3 May 2004 15:19:01 +0000 Subject: 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 --- mbbsd/cal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mbbsd/cal.c') 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]")); } -- cgit v1.2.3