diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-07-19 09:14:45 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-07-19 09:14:45 +0800 |
commit | da8da8ab0be8b2100667405297e717c84670b4d8 (patch) | |
tree | c9520e96c2f962d7bfe9b25411efbcd183af20f4 /mbbsd/bbs.c | |
parent | 1f84b35094953975bfd0bb9d028b9dc17adbd273 (diff) | |
download | pttbbs-da8da8ab0be8b2100667405297e717c84670b4d8.tar pttbbs-da8da8ab0be8b2100667405297e717c84670b4d8.tar.gz pttbbs-da8da8ab0be8b2100667405297e717c84670b4d8.tar.bz2 pttbbs-da8da8ab0be8b2100667405297e717c84670b4d8.tar.lz pttbbs-da8da8ab0be8b2100667405297e717c84670b4d8.tar.xz pttbbs-da8da8ab0be8b2100667405297e717c84670b4d8.tar.zst pttbbs-da8da8ab0be8b2100667405297e717c84670b4d8.zip |
1. add <> for deleted announce.
2. change the display of push bottom.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2143 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r-- | mbbsd/bbs.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 5fe06b62..291a0964 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -74,7 +74,7 @@ save_violatelaw(void) "已經造成很多人的不便\033[m\n"); outs("\033[1;37m你是否確定以後不會再犯了?\033[m\n"); - if (!getdata(10, 0, "確定嗎?[y/n]:", ok, sizeof(ok), LCECHO) || + if (!getdata(10, 0, "確定嗎?[Y/n]:", ok, sizeof(ok), LCECHO) || ok[0] == 'n' || ok[0] == 'N') { mouts(22, 0, "\033[1;31m等你想通了再來吧!! " "我相信你不會知錯不改的~~~\033[m"); @@ -85,13 +85,17 @@ save_violatelaw(void) cuser.vl_count, cuser.vl_count * 1000); mouts(11, 0, buf); - if (!getdata(10, 0, "要付錢[y/n]:", ok, sizeof(ok), LCECHO) || + if (!getdata(10, 0, "要付錢[Y/n]:", ok, sizeof(ok), LCECHO) || ok[0] == 'N' || ok[0] == 'n') { mouts(22, 0, "\033[1;31m 嗯 存夠錢 再來吧!!!\033[m"); pressanykey(); return 0; } + + reload_money(); + if (cuser.money < (int)cuser.vl_count * 1000) return 0; //Ptt:check one more time + demoney(-1000 * cuser.vl_count); cuser.userlevel &= (~PERM_VIOLATELAW); passwd_update(usernum, &cuser); @@ -219,9 +223,7 @@ readdoent(int num, fileheader_t * ent) else strcpy(recom,"0m "); if (ent->filemode & FILE_BOTTOM) - outs(" \033[1;31m置底\033[m"); - else if (ent->filemode & FILE_DIGEST) - outs(" \033[1;32m文摘\033[m"); + outs(" \033[33m ★ \033[m"); else prints("%6d", num); |