From 1c8467227898b1bde20b0c0c2fee3b851d474cca Mon Sep 17 00:00:00 2001 From: in2 Date: Tue, 2 Jul 2002 14:56:22 +0000 Subject: use vmsg() git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@401 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/user.c | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/mbbsd/user.c b/mbbsd/user.c index 95c3032f..a0895c3e 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -1,4 +1,4 @@ -/* $Id: user.c,v 1.26 2002/06/30 14:34:11 in2 Exp $ */ +/* $Id: user.c,v 1.27 2002/07/02 14:56:22 in2 Exp $ */ #include "bbs.h" static char *sex[8] = { @@ -1001,9 +1001,7 @@ int u_register(void) if( removespace(rname) && rname[0] < 0 && !strstr(rname, "阿") && !strstr(rname, "小") ) break; - move(20, 0);prints("您的輸入不正確"); - pressanykey(); - move(20, 0);prints(" "); + vmsg("您的輸入不正確"); } while( 1 ){ @@ -1011,26 +1009,20 @@ int u_register(void) "服務單位", career, 40); if( removespace(career) && career[0] < 0 && strlen(career) >= 4 ) break; - move(20, 0);prints("您的輸入不正確"); - pressanykey(); - move(20, 0);prints(" "); + vmsg("您的輸入不正確"); } while( 1 ){ getfield(9, "含縣市及門寢號碼(台北請加\033[1;33m行政區\033[m)", "目前住址", addr, 50); if( removespace(addr) && addr[0] < 0 && strlen(addr) >= 15 ) break; - move(20, 0);prints("您的輸入不正確"); - pressanykey(); - move(20, 0);prints(" "); + vmsg("這個地址並不合法"); } while( 1 ){ getfield(11, "不加-(), 包括長途區號", "連絡電話", phone, 11); if( removespace(phone) && phone[0] == '0' && strlen(phone) >= 9 ) break; - move(20, 0);prints("您的輸入不正確"); - pressanykey(); - move(20, 0);prints(" "); + vmsg("這個電話號碼並不合法"); } getfield(13, "只輸入數字 如:0912345678 (可不填)", "手機號碼", mobile, 20); -- cgit v1.2.3