From 500d5247ef4f6b4ab3a14c8b68538c126db5b3e9 Mon Sep 17 00:00:00 2001 From: piaip Date: Wed, 12 Mar 2008 11:23:00 +0000 Subject: - 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 --- mbbsd/mail.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mbbsd/mail.c') 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; -- cgit v1.2.3