summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-08 16:38:27 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-08 16:38:27 +0800
commitccd9c81ff6d7365eb4c11f7b881ae6c00a037d58 (patch)
tree19feee2ff5b8e3c7b6f2f448e7c2b7cf6b55fa66 /mbbsd
parent32c5be9d2f09b62a67b31f92df953418cc186619 (diff)
downloadpttbbs-ccd9c81ff6d7365eb4c11f7b881ae6c00a037d58.tar
pttbbs-ccd9c81ff6d7365eb4c11f7b881ae6c00a037d58.tar.gz
pttbbs-ccd9c81ff6d7365eb4c11f7b881ae6c00a037d58.tar.bz2
pttbbs-ccd9c81ff6d7365eb4c11f7b881ae6c00a037d58.tar.lz
pttbbs-ccd9c81ff6d7365eb4c11f7b881ae6c00a037d58.tar.xz
pttbbs-ccd9c81ff6d7365eb4c11f7b881ae6c00a037d58.tar.zst
pttbbs-ccd9c81ff6d7365eb4c11f7b881ae6c00a037d58.zip
NO_SYSOP_ACCOUNT
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1581 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/mbbsd.c4
1 files changed, 4 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 /* 自動加上各個主要權限 */
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;
}