summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pttbbs/mbbsd/gamble.c6
-rw-r--r--pttbbs/util/openticket.c4
-rw-r--r--pttbbs/util/openticket.sh5
3 files changed, 8 insertions, 7 deletions
diff --git a/pttbbs/mbbsd/gamble.c b/pttbbs/mbbsd/gamble.c
index caedca66..93c3fa00 100644
--- a/pttbbs/mbbsd/gamble.c
+++ b/pttbbs/mbbsd/gamble.c
@@ -393,8 +393,12 @@ openticket(int bid)
MONEYNAME "幣\n",
IDLEN, userid, i, betname[mybet], money * i);
snprintf(buf, sizeof(buf), "%s 中獎咧! $ %d", bh->brdname, money * i);
- } else
+ } else {
+ if (fp)
+ fprintf(fp, " %-*s 買了 %3d 張 %s\n" ,
+ IDLEN, userid, i, betname[mybet]);
continue;
+ }
if ((uid = searchuser(userid, userid)) == 0)
continue;
pay_as_uid(uid, -(money * i), BBSMNAME "賭場 - 彩票[%s]", betname[mybet]);
diff --git a/pttbbs/util/openticket.c b/pttbbs/util/openticket.c
index dad89677..5b3147e3 100644
--- a/pttbbs/util/openticket.c
+++ b/pttbbs/util/openticket.c
@@ -119,7 +119,9 @@ int main(int argc, char **argv)
Link(BBSHOME "/etc/ticket", genbuf);
sprintf(genbuf, BBSHOME "/home/%c/%s/.DIR", userid[0], userid);
append_record(genbuf, &mymail, sizeof(mymail));
- }
+ } else {
+ printf(" %-15s買了%9d 張 %s\n" ,userid, num, betname[mybet]);
+ }
}
}
unlink(BBSHOME "/etc/" FN_TICKET_RECORD ".tmp");
diff --git a/pttbbs/util/openticket.sh b/pttbbs/util/openticket.sh
index 8274e5c3..fc951fb7 100644
--- a/pttbbs/util/openticket.sh
+++ b/pttbbs/util/openticket.sh
@@ -3,8 +3,3 @@
bin/openticket > etc/jackpot
bin/post Record "彩券中獎名單" "[賭場報告]" etc/jackpot
-bin/post Record "猜數字中獎名單" "[猜數字報告]" etc/winguess.log
-bin/post Record "黑白棋對戰記錄" "[猜數字報告]" etc/othello.log
-rm -f etc/winguess.log
-rm -f etc/loseguess.log
-rm -f etc/othello.log