summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2011-12-04 12:26:07 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2011-12-04 12:26:07 +0800
commiteb5e2fec9a19f9e207e1adc68384d686adbbc81e (patch)
tree4f47a0522f94376a683eb048ae0e411e20fcd8ac
parent1f2590893195d44890ea50d55e75c29ef9efa29a (diff)
downloadpttbbs-eb5e2fec9a19f9e207e1adc68384d686adbbc81e.tar
pttbbs-eb5e2fec9a19f9e207e1adc68384d686adbbc81e.tar.gz
pttbbs-eb5e2fec9a19f9e207e1adc68384d686adbbc81e.tar.bz2
pttbbs-eb5e2fec9a19f9e207e1adc68384d686adbbc81e.tar.lz
pttbbs-eb5e2fec9a19f9e207e1adc68384d686adbbc81e.tar.xz
pttbbs-eb5e2fec9a19f9e207e1adc68384d686adbbc81e.tar.zst
pttbbs-eb5e2fec9a19f9e207e1adc68384d686adbbc81e.zip
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
-rw-r--r--pttbbs/mbbsd/mail.c3
1 files changed, 2 insertions, 1 deletions
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²Õ§@·~");