diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-12 19:23:00 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-12 19:23:00 +0800 |
commit | 500d5247ef4f6b4ab3a14c8b68538c126db5b3e9 (patch) | |
tree | 2bb81bb2263cf41a0c1f57c23df1776399bbfa4c /mbbsd/mail.c | |
parent | 0118e623c97c9c61b34820a38feabeab34408e43 (diff) | |
download | pttbbs-500d5247ef4f6b4ab3a14c8b68538c126db5b3e9.tar pttbbs-500d5247ef4f6b4ab3a14c8b68538c126db5b3e9.tar.gz pttbbs-500d5247ef4f6b4ab3a14c8b68538c126db5b3e9.tar.bz2 pttbbs-500d5247ef4f6b4ab3a14c8b68538c126db5b3e9.tar.lz pttbbs-500d5247ef4f6b4ab3a14c8b68538c126db5b3e9.tar.xz pttbbs-500d5247ef4f6b4ab3a14c8b68538c126db5b3e9.tar.zst pttbbs-500d5247ef4f6b4ab3a14c8b68538c126db5b3e9.zip |
- mail: enable z for some users who already have mail-man before.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3997 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r-- | mbbsd/mail.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c index fe5b9704..f5426403 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -1525,11 +1525,14 @@ mail_man(void) int stat0 = currstat; // TODO if someday we put things in user man...? + sethomeman(buf, cuser.userid); + + // if user already has man directory or permission, + // allow entering mail-man folder. - if (!HasUserPerm(PERM_MAILLIMIT)) + if (!dashd(buf) && !HasUserPerm(PERM_MAILLIMIT)) return DONOTHING; - sethomeman(buf, cuser.userid); snprintf(buf1, sizeof(buf1), "%s ªº«H¥ó§¨", cuser.userid); a_menu(buf1, buf, HasUserPerm(PERM_MAILLIMIT) ? 1 : 0, 0, NULL); currutmp->mode = mode0; |