summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-02 22:56:22 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-02 22:56:22 +0800
commit1c8467227898b1bde20b0c0c2fee3b851d474cca (patch)
treee7f10e7b7a0f6b66659ec89a9a9cdc74b278b782 /mbbsd
parent562677712b03d169f51840c79690111b235ec862 (diff)
downloadpttbbs-1c8467227898b1bde20b0c0c2fee3b851d474cca.tar
pttbbs-1c8467227898b1bde20b0c0c2fee3b851d474cca.tar.gz
pttbbs-1c8467227898b1bde20b0c0c2fee3b851d474cca.tar.bz2
pttbbs-1c8467227898b1bde20b0c0c2fee3b851d474cca.tar.lz
pttbbs-1c8467227898b1bde20b0c0c2fee3b851d474cca.tar.xz
pttbbs-1c8467227898b1bde20b0c0c2fee3b851d474cca.tar.zst
pttbbs-1c8467227898b1bde20b0c0c2fee3b851d474cca.zip
use vmsg()
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@401 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
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);