summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-10-30 10:14:00 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-10-30 10:14:00 +0800
commit3d62237a3809aec1268ccf45af2023720832d885 (patch)
tree6d10f626a25850ff94258f643d23719eea878faa /mbbsd
parentba0d1c7297bb41f45b93d956317ef06dd2b29cdd (diff)
downloadpttbbs-3d62237a3809aec1268ccf45af2023720832d885.tar
pttbbs-3d62237a3809aec1268ccf45af2023720832d885.tar.gz
pttbbs-3d62237a3809aec1268ccf45af2023720832d885.tar.bz2
pttbbs-3d62237a3809aec1268ccf45af2023720832d885.tar.lz
pttbbs-3d62237a3809aec1268ccf45af2023720832d885.tar.xz
pttbbs-3d62237a3809aec1268ccf45af2023720832d885.tar.zst
pttbbs-3d62237a3809aec1268ccf45af2023720832d885.zip
add PERM_NOREGCODE
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1278 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/user.c5
-rw-r--r--mbbsd/var.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index bcb4978c..92714cb4 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -1221,6 +1221,11 @@ u_register(void)
getdata(10, 0, "您的輸入: ", inregcode, sizeof(inregcode), DOECHO);
if (strcmp(inregcode, getregcode(regcode)) == 0) {
int unum;
+ if (cuser.userlevel & PERM_NOREGCODE) {
+ prints("您不被允許以認證碼在本站認證,請改用手動認證。\n按任意鍵離站。");
+ pressanykey();
+ exit(0);
+ }
if ((unum = getuser(cuser.userid)) == 0) {
outs("系統錯誤,查無此人\n\n");
pressanykey();
diff --git a/mbbsd/var.c b/mbbsd/var.c
index a101247c..a591652f 100644
--- a/mbbsd/var.c
+++ b/mbbsd/var.c
@@ -22,7 +22,7 @@ char *str_permid[] = {
"不列入排行榜", /* PERM_NOTOP */
"違法通緝中", /* PERM_VIOLATELAW */
"不接受站外的信", /* PERM_ */
- "沒想到", /* PERM_ */
+ "不允許認證碼註冊", /* PERM_NOREGCODE */
"視覺站長", /* PERM_VIEWSYSOP */
"觀察使用者行蹤", /* PERM_LOGUSER */
"精華區總整理權", /* PERM_Announce */