diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-23 11:33:07 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-23 11:33:07 +0800 |
commit | 54a8601007652d6192a0a0ab460e6256d88b87b3 (patch) | |
tree | b5e631e4f08de26493cfda26c8f658cccd361905 /mbbsd/gamble.c | |
parent | 2d0bb2f6ecc057ca981dfb382d7526b079ccf0af (diff) | |
download | pttbbs-54a8601007652d6192a0a0ab460e6256d88b87b3.tar pttbbs-54a8601007652d6192a0a0ab460e6256d88b87b3.tar.gz pttbbs-54a8601007652d6192a0a0ab460e6256d88b87b3.tar.bz2 pttbbs-54a8601007652d6192a0a0ab460e6256d88b87b3.tar.lz pttbbs-54a8601007652d6192a0a0ab460e6256d88b87b3.tar.xz pttbbs-54a8601007652d6192a0a0ab460e6256d88b87b3.tar.zst pttbbs-54a8601007652d6192a0a0ab460e6256d88b87b3.zip |
oauto expire gamble
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@340 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/gamble.c')
-rw-r--r-- | mbbsd/gamble.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/mbbsd/gamble.c b/mbbsd/gamble.c index 88e82b67..c692cd4f 100644 --- a/mbbsd/gamble.c +++ b/mbbsd/gamble.c @@ -1,4 +1,4 @@ -/* $Id: gamble.c,v 1.19 2002/06/23 02:05:46 ptt Exp $ */ +/* $Id: gamble.c,v 1.20 2002/06/23 03:33:07 ptt Exp $ */ #include "bbs.h" #ifndef _BBS_UTIL_C_ @@ -76,13 +76,18 @@ static int show_ticket_data(char *direct, int *price, boardheader_t *bh) { int i,count, total = 0, end=0, ticket[MAX_ITEM] = {0, 0, 0, 0, 0, 0, 0, 0}; FILE *fp; - char genbuf[256]; + char genbuf[256], t[25]; clear(); if (bh) { sprintf(genbuf,"%s ½ä½L", bh->brdname); - showtitle(genbuf, BBSNAME); + if(bh->endgamble && now > bh->endgamble && now-bh->endgamble<1800) + { + sprintf(t,"«Ê½LË¼Æ %d ¬í"); + showtitle(genbuf, t); + } + else showtitle(genbuf, BBSNAME); } else showtitle("Ptt½ä½L", BBSNAME); |