From 0b1e8ae653a203791ff3b7a414401a3c58f543b4 Mon Sep 17 00:00:00 2001 From: piaip Date: Mon, 7 Apr 2008 03:32:42 +0000 Subject: - 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 --- mbbsd/angel.c | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'mbbsd/angel.c') 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 -- cgit v1.2.3