summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-08-27 18:04:04 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-08-27 18:04:04 +0800
commit758734f7b8b0c8a859b17185bd6ce45775e7bf9d (patch)
tree65ecb72f6c8d5fcd33fdfa6eec1ea2d3799c96ec /mbbsd/bbs.c
parent96913fe72a4d88403a1786213a5954659d68932e (diff)
downloadpttbbs-758734f7b8b0c8a859b17185bd6ce45775e7bf9d.tar
pttbbs-758734f7b8b0c8a859b17185bd6ce45775e7bf9d.tar.gz
pttbbs-758734f7b8b0c8a859b17185bd6ce45775e7bf9d.tar.bz2
pttbbs-758734f7b8b0c8a859b17185bd6ce45775e7bf9d.tar.lz
pttbbs-758734f7b8b0c8a859b17185bd6ce45775e7bf9d.tar.xz
pttbbs-758734f7b8b0c8a859b17185bd6ce45775e7bf9d.tar.zst
pttbbs-758734f7b8b0c8a859b17185bd6ce45775e7bf9d.zip
use vmsg() instead of outs() + pressanykey()
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2170 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c30
1 files changed, 10 insertions, 20 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index da94fda7..55c859bb 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -954,8 +954,7 @@ cross_post(int ent, fileheader_t * fhdr, char *direct)
if (!CheckPostPerm()) {
move(5, 10);
- outs("對不起,您目前無法轉錄文章!");
- pressanykey();
+ vmsg("對不起,您目前無法轉錄文章!");
return FULLUPDATE;
}
move(2, 0);
@@ -1045,8 +1044,7 @@ cross_post(int ent, fileheader_t * fhdr, char *direct)
setbtotal(getbnum(xboard));
cuser.numposts++;
UPDATE_USEREC;
- outs("文章轉錄完成");
- pressanykey();
+ vmsg("文章轉錄完成");
currmode = currmode0;
}
return FULLUPDATE;
@@ -1410,7 +1408,8 @@ do_bid(int ent, fileheader_t * fhdr, boardheader_t *bp,
}
#endif
}
- else outs("無人得標!");
+ else
+ outs("無人得標!");
pressanykey();
return FULLUPDATE;
}
@@ -1426,8 +1425,7 @@ do_bid(int ent, fileheader_t * fhdr, boardheader_t *bp,
next=bidinfo.high;
}
if( !strcmp(cuser.userid,bidinfo.userid) ){
- outs("你是最高得標者!");
- pressanykey();
+ vmsg("你是最高得標者!");
return FULLUPDATE;
}
if( strcmp(cuser.userid, fhdr->owner) == 0 ){
@@ -1815,15 +1813,12 @@ tar_addqueue(int ent, fileheader_t * fhdr, char *direct)
showtitle("看板備份", BBSNAME);
move(2, 0);
if (!((currmode & MODE_BOARD) || HAS_PERM(PERM_SYSOP))) {
- move(5, 10);
- outs("妳要是板主或是站長才能醬醬啊 -.-\"\"");
- pressanykey();
+ vmsg("妳要是板主或是站長才能醬醬啊 -.-\"\"");
return FULLUPDATE;
}
snprintf(qfn, sizeof(qfn), BBSHOME "/jobspool/tarqueue.%s", currboard);
if (access(qfn, 0) == 0) {
- outs("已經排定行程, 稍後會進行備份");
- pressanykey();
+ vmsg("已經排定行程, 稍後會進行備份");
return FULLUPDATE;
}
if (!getdata(4, 0, "請輸入目的信箱:", email, sizeof(email), DOECHO))
@@ -1831,9 +1826,7 @@ tar_addqueue(int ent, fileheader_t * fhdr, char *direct)
/* check email -.-"" */
if (strstr(email, "@") == NULL || strstr(email, ".bbs@") != NULL) {
- move(6, 0);
- outs("您指定的信箱不正確! ");
- pressanykey();
+ vmsg("您指定的信箱不正確! ");
return FULLUPDATE;
}
getdata(6, 0, "要備份看板內容嗎(Y/N)?[Y]", ans, sizeof(ans), LCECHO);
@@ -1841,9 +1834,7 @@ tar_addqueue(int ent, fileheader_t * fhdr, char *direct)
getdata(7, 0, "要備份精華區內容嗎(Y/N)?[N]", ans, sizeof(ans), LCECHO);
bakman = (ans[0] == 'y' || ans[0] == 'Y') ? 1 : 0;
if (!bakboard && !bakman) {
- move(8, 0);
- outs("可是我們只能備份看板或精華區的耶 ^^\"\"\"");
- pressanykey();
+ vmsg("可是我們只能備份看板或精華區的耶 ^^\"\"\"");
return FULLUPDATE;
}
fp = fopen(qfn, "w");
@@ -1957,8 +1948,7 @@ b_note_edit_bname(int bid)
aborted = vedit(buf, NA, NULL);
if (aborted == -1) {
clear();
- outs(msg_cancel);
- pressanykey();
+ vmsg(msg_cancel);
} else {
if (!getdata(2, 0, "設定有效期限天?(n/Y)", buf, 3, LCECHO)
|| buf[0] != 'n')