summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-07-19 09:14:45 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-07-19 09:14:45 +0800
commitda8da8ab0be8b2100667405297e717c84670b4d8 (patch)
treec9520e96c2f962d7bfe9b25411efbcd183af20f4
parent1f84b35094953975bfd0bb9d028b9dc17adbd273 (diff)
downloadpttbbs-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
-rw-r--r--mbbsd/announce.c5
-rw-r--r--mbbsd/bbs.c12
2 files changed, 10 insertions, 7 deletions
diff --git a/mbbsd/announce.c b/mbbsd/announce.c
index a1fc9d41..38b4a1f8 100644
--- a/mbbsd/announce.c
+++ b/mbbsd/announce.c
@@ -590,9 +590,10 @@ a_delete(menu_t * pm)
system(cmd);
strlcpy(backup.owner, cuser.userid, sizeof(backup.owner));
- strlcpy(backup.title,
+ strcpy(backup.title, "◆ ");
+ strlcpy(backup.title+3,
pm->header[pm->now - pm->page].title + 2,
- sizeof(backup.title));
+ sizeof(backup.title)-3);
setapath(buf, "deleted");
setadir(buf, buf);
append_record(buf, &backup, sizeof(backup));
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);