summaryrefslogtreecommitdiffstats
path: root/mbbsd/angel.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-07 11:32:42 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-07 11:32:42 +0800
commit0b1e8ae653a203791ff3b7a414401a3c58f543b4 (patch)
tree15e8b133c1e3c5c878b3073fffc9260f1d4c3ab2 /mbbsd/angel.c
parent87e2e8ae38c1c8b0fda6bbdaf76862adb5bef00f (diff)
downloadpttbbs-0b1e8ae653a203791ff3b7a414401a3c58f543b4.tar
pttbbs-0b1e8ae653a203791ff3b7a414401a3c58f543b4.tar.gz
pttbbs-0b1e8ae653a203791ff3b7a414401a3c58f543b4.tar.bz2
pttbbs-0b1e8ae653a203791ff3b7a414401a3c58f543b4.tar.lz
pttbbs-0b1e8ae653a203791ff3b7a414401a3c58f543b4.tar.xz
pttbbs-0b1e8ae653a203791ff3b7a414401a3c58f543b4.tar.zst
pttbbs-0b1e8ae653a203791ff3b7a414401a3c58f543b4.zip
- angel update: enable GotoNewhand again, with querying user first.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4089 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/angel.c')
-rw-r--r--mbbsd/angel.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/mbbsd/angel.c b/mbbsd/angel.c
index e688aec9..11fe97eb 100644
--- a/mbbsd/angel.c
+++ b/mbbsd/angel.c
@@ -304,17 +304,20 @@ GotoNewHand(){
static inline void
NoAngelFound(const char* msg){
- move(b_lines, 0);
+ // don't worry about the screen -
+ // it should have been backuped before entering here.
+
+ grayout(0, b_lines-3, GRAYOUT_DARK);
+ move(b_lines-4, 0); clrtobot();
+ outs(msg_seperator);
+ move(b_lines-2, 0);
if (!msg)
msg = "你的小天使現在不在線上";
outs(msg);
if (currutmp == NULL || currutmp->mode != EDITING)
outs(",請先在新手板上尋找答案或按 Ctrl-P 發問");
- clrtoeol();
- refresh();
- sleep(3);
- GotoNewHand();
- return;
+ if (vmsg("請按任意鍵繼續,若想直接進入新手板發文請按 'y'") == 'y')
+ GotoNewHand();
}
static inline void
@@ -369,10 +372,10 @@ AngelNotOnline(){
" 想留言給小天使請到許\願版(AngelPray)\n"
" 想找看板在哪的話可到(AskBoard)\n"
"請先在各板上尋找答案或按 Ctrl-P 發問");
- pressanykey();
- // too many problems - prevent doing so here.
- // GotoNewHand();
+ // Query if user wants to go to newbie board
+ if (vmsg("請按任意鍵繼續,若想直接進入新手板發文請按 'y'") == 'y')
+ GotoNewHand();
}
static void