diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-08 22:23:24 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-08 22:23:24 +0800 |
commit | e041c43c8961880cebbc18c1be59bde99582ea2a (patch) | |
tree | e9ae727e9d3e52ffbb524714644d635bcbc44b47 /mbbsd/mail.c | |
parent | 72fa46586658fa5a7e797e66167583b17cb5a858 (diff) | |
download | pttbbs-e041c43c8961880cebbc18c1be59bde99582ea2a.tar pttbbs-e041c43c8961880cebbc18c1be59bde99582ea2a.tar.gz pttbbs-e041c43c8961880cebbc18c1be59bde99582ea2a.tar.bz2 pttbbs-e041c43c8961880cebbc18c1be59bde99582ea2a.tar.lz pttbbs-e041c43c8961880cebbc18c1be59bde99582ea2a.tar.xz pttbbs-e041c43c8961880cebbc18c1be59bde99582ea2a.tar.zst pttbbs-e041c43c8961880cebbc18c1be59bde99582ea2a.zip |
add super sys support op (群組長)
HUGETLB doesn't need root
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3010 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r-- | mbbsd/mail.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c index 0d57a8bc..dd69aba9 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -202,8 +202,12 @@ void setupmailusage(void) { // Ptt: get_sum_records is a bad function int max_keepmail = MAX_KEEPMAIL; - if( HasUserPerm(PERM_SYSSUBOP | PERM_ACCTREG | PERM_PRG | - PERM_ACTION | PERM_PAINT) ){ + if (HasUserPerm(PERM_SYSSUPERSUBOP)) { + mailsumlimit = 900; + max_keepmail = 700; + } + else if (HasUserPerm(PERM_SYSSUBOP | PERM_ACCTREG | PERM_PRG | + PERM_ACTION | PERM_PAINT)) { mailsumlimit = 700; max_keepmail = 500; } else if (HasUserPerm(PERM_BM)) { |