summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-10-04 16:06:31 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-10-04 16:06:31 +0800
commitcebeab878d320642ec21d47d21359dab7007d80c (patch)
tree56b42e3d3d6267e093c4035ae7ea93724e9d8ef8
parenta0665a20fba3f41cd4c9011fd4e7265a92448d31 (diff)
downloadpttbbs-cebeab878d320642ec21d47d21359dab7007d80c.tar
pttbbs-cebeab878d320642ec21d47d21359dab7007d80c.tar.gz
pttbbs-cebeab878d320642ec21d47d21359dab7007d80c.tar.bz2
pttbbs-cebeab878d320642ec21d47d21359dab7007d80c.tar.lz
pttbbs-cebeab878d320642ec21d47d21359dab7007d80c.tar.xz
pttbbs-cebeab878d320642ec21d47d21359dab7007d80c.tar.zst
pttbbs-cebeab878d320642ec21d47d21359dab7007d80c.zip
log
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2222 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-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);