summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/user.c18
1 files 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);