summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/gamble.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/mbbsd/gamble.c b/mbbsd/gamble.c
index e752debd..69193f9f 100644
--- a/mbbsd/gamble.c
+++ b/mbbsd/gamble.c
@@ -326,12 +326,11 @@ openticket(int bid)
}
fclose(fp1);
}
- if (fp)
- {
- fprintf(fp, "\n--\n※ 開獎站 :" BBSNAME "(" MYHOSTNAME
- ") \n◆ From: %s\n", fromhost);
+ if (fp) {
+ fprintf(fp, "\n--\n※ 開獎站 :" BBSNAME "(" MYHOSTNAME
+ ") \n◆ From: %s\n", fromhost);
fclose(fp);
- }
+ }
if (bet != 98)
snprintf(buf, sizeof(buf), "[公告] %s 賭盤開獎", bh->brdname);
@@ -339,11 +338,15 @@ openticket(int bid)
snprintf(buf, sizeof(buf), "[公告] %s 賭盤取消", bh->brdname);
post_file(bh->brdname, buf, outcome, "[賭神]");
post_file("Record", buf + 7, outcome, "[馬路探子]");
+ post_file("Security", buf + 7, outcome, "[馬路探子]");
setbfile(buf, bh->brdname, FN_TICKET_RECORD);
unlink(buf);
+
setbfile(buf, bh->brdname, FN_TICKET_USER);
+ post_file("Security", bh->brdname, buf, "[下注紀錄]");
unlink(buf);
+
setbfile(buf, bh->brdname, FN_TICKET_LOCK);
unlink(buf);
exit(1);