summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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, "�z����J: ", inregcode, sizeof(inregcode), DOECHO);
if (strcmp(inregcode, getregcode(regcode)) == 0) {
int unum;
+ if (cuser.userlevel & PERM_NOREGCODE) {
+ prints("�z���Q���\�H�{�ҽX�b�����{�ҡA�Ч�Τ�ʻ{�ҡC\n�����N�������C");
+ pressanykey();
+ exit(0);
+ }
if ((unum = getuser(cuser.userid)) == 0) {
outs("�t��~�A�d�L���H\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[] = {
"���C�J�Ʀ�]", /* PERM_NOTOP */
"�H�k�q�r��", /* PERM_VIOLATELAW */
"���������~���H", /* PERM_ */
- "�S�Q��", /* PERM_ */
+ "�����\�{�ҽX���U", /* PERM_NOREGCODE */
"��ı����", /* PERM_VIEWSYSOP */
"�[��ϥΪ̦���", /* PERM_LOGUSER */
"��ذ��`��z�v", /* PERM_Announce */