From eb5e2fec9a19f9e207e1adc68384d686adbbc81e Mon Sep 17 00:00:00 2001 From: piaip Date: Sun, 4 Dec 2011 04:26:07 +0000 Subject: don't allow multsend if user is in violation mode git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5489 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/mail.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pttbbs/mbbsd/mail.c b/pttbbs/mbbsd/mail.c index 47183f12..6b4e566a 100644 --- a/pttbbs/mbbsd/mail.c +++ b/pttbbs/mbbsd/mail.c @@ -1107,7 +1107,8 @@ multi_reply(int ent, fileheader_t * fhdr, const char *direct) int mail_list(void) { - if (!HasBasicUserPerm(PERM_LOGINOK)) + if (!HasBasicUserPerm(PERM_LOGINOK) || + HasUserPerm(PERM_VIOLATELAW)) return DONOTHING; vs_hdr("¸s²Õ§@·~"); -- cgit v1.2.3