summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/mbbsd.c4
-rw-r--r--sample/pttbbs.conf6
2 files changed, 10 insertions, 0 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 9e135c76..2c182a87 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -609,12 +609,16 @@ login_query()
} else {
logattempt(cuser.userid, ' ');
if (strcasecmp("SYSOP", cuser.userid) == 0){
+#ifdef NO_SYSOP_ACCOUNT
+ exit(0);
+#else /* �۰ʥ[�W�U�ӥD�n�v�� */
cuser.userlevel = PERM_BASIC | PERM_CHAT | PERM_PAGE |
PERM_POST | PERM_LOGINOK | PERM_MAILLIMIT |
PERM_CLOAK | PERM_SEECLOAK | PERM_XEMPT |
PERM_DENYPOST | PERM_BM | PERM_ACCOUNTS |
PERM_CHATROOM | PERM_BOARD | PERM_SYSOP | PERM_BBSADM;
mkuserdir(cuser.userid);
+#endif
}
break;
}
diff --git a/sample/pttbbs.conf b/sample/pttbbs.conf
index 28f148c0..2d50c647 100644
--- a/sample/pttbbs.conf
+++ b/sample/pttbbs.conf
@@ -136,6 +136,12 @@
�o��h�� fd , �H�קK�ϥΪ̨g�s�y����j���t�� (default: 0) */
//#define OVERLOADBLOCKFDS 128
+/* �Y�w�q, �h SYSOP�b���ä��|�۰ʥ[�W�����v��.
+ �b�Ĥ@���Ұʮ�, �z�ä���w�q (�_�h�N�����쯸���v�F) .
+ �Ӧb�]�w������, �Y�z�����b���ä��s�� SYSOP,
+ �h�i�z�L NO_SYSOP_ACCOUNT �����ӱb��, �H�קK�w�����D�o��. */
+//#define NO_SYSOP_ACCOUNT
+
/* �e�i���e�� */
#define INSCREEN \
"�e�i���e�� (�Ц� pttbbs.conf �ק�z���e�i���e��)"