diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2014-06-27 20:40:11 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2014-06-27 20:40:11 +0800 |
commit | 47b8b080deb69bbcbf4edb9b59d63517b90a929e (patch) | |
tree | d241e02047f9b291bd90f6d4ebfebdc7f209c978 | |
parent | 2139ec3671694bbce021f702bb813f797b5088b3 (diff) | |
download | pttbbs-47b8b080deb69bbcbf4edb9b59d63517b90a929e.tar pttbbs-47b8b080deb69bbcbf4edb9b59d63517b90a929e.tar.gz pttbbs-47b8b080deb69bbcbf4edb9b59d63517b90a929e.tar.bz2 pttbbs-47b8b080deb69bbcbf4edb9b59d63517b90a929e.tar.lz pttbbs-47b8b080deb69bbcbf4edb9b59d63517b90a929e.tar.xz pttbbs-47b8b080deb69bbcbf4edb9b59d63517b90a929e.tar.zst pttbbs-47b8b080deb69bbcbf4edb9b59d63517b90a929e.zip |
Revise pvcm behavior
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@6015 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/psb.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/psb.c b/pttbbs/mbbsd/psb.c index 5702359b..2f3bb09a 100644 --- a/pttbbs/mbbsd/psb.c +++ b/pttbbs/mbbsd/psb.c @@ -705,6 +705,9 @@ pvcm_input_processor(int key, int curr, int total GCC_UNUSED, int rows GCC_UNUSE case 'd': do { char reason[DISP_TTLEN]; + const CommentBodyReq *resp = CommentsRead(cx->cmctx, curr); + if (!resp || resp->type < 0) + break; if (!getdata(b_lines-2, 0, "請輸入刪除原因: ", reason, sizeof(reason), DOECHO)) break; @@ -724,10 +727,11 @@ pvcm_welcome() { clear(); move(2, 0); vs_hdr2("刪除推文", "實驗警告"); + // This must be a outs because we have '%' inside. outs(ANSI_COLOR(1;31) " 這是實驗中的刪推文界面。\n\n" ANSI_RESET " 提醒您: (1) 刪推文會從檔案前面開始找看起來作者跟內文相同的第一筆。\n" -" 目前沒辦法100%%確認找到正確的位置,但起碼內文是相同的。\n\n" +" 目前沒辦法100%確認找到正確的位置,但起碼內文是相同的。\n\n" " (2) 被編輯過造成內容有變動的推文無法刪除。\n\n" ""); pressanykey(); |