summaryrefslogtreecommitdiffstats
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
commit83a77d182b800e5e7e7df6e8dac9d3d72225db4f (patch)
tree9a1ee724cc4b869f599efa8c7374e35963e09a13
parent8d028cad2542dfac9938a7bd7db083ca40fc29a7 (diff)
downloadpttbbs-83a77d182b800e5e7e7df6e8dac9d3d72225db4f.tar
pttbbs-83a77d182b800e5e7e7df6e8dac9d3d72225db4f.tar.gz
pttbbs-83a77d182b800e5e7e7df6e8dac9d3d72225db4f.tar.bz2
pttbbs-83a77d182b800e5e7e7df6e8dac9d3d72225db4f.tar.lz
pttbbs-83a77d182b800e5e7e7df6e8dac9d3d72225db4f.tar.xz
pttbbs-83a77d182b800e5e7e7df6e8dac9d3d72225db4f.tar.zst
pttbbs-83a77d182b800e5e7e7df6e8dac9d3d72225db4f.zip
add PERM_NOREGCODE
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@1278 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/user.c5
-rw-r--r--pttbbs/mbbsd/var.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/user.c b/pttbbs/mbbsd/user.c
index bcb4978c..92714cb4 100644
--- a/pttbbs/mbbsd/user.c
+++ b/pttbbs/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/pttbbs/mbbsd/var.c b/pttbbs/mbbsd/var.c
index a101247c..a591652f 100644
--- a/pttbbs/mbbsd/var.c
+++ b/pttbbs/mbbsd/var.c
@@ -22,7 +22,7 @@ char *str_permid[] = {
"不列入排行榜", /* PERM_NOTOP */
"違法通緝中", /* PERM_VIOLATELAW */
"不接受站外的信", /* PERM_ */
- "沒想到", /* PERM_ */
+ "不允許認證碼註冊", /* PERM_NOREGCODE */
"視覺站長", /* PERM_VIEWSYSOP */
"觀察使用者行蹤", /* PERM_LOGUSER */
"精華區總整理權", /* PERM_Announce */