summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2012-08-19 12:22:48 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2012-08-19 12:22:48 +0800
commit063873ef5ff4f8dfd2952a794e237d713c3a154e (patch)
treea86aec0a938ff88803ee341202206e94b9f62627
parentd58534f9d052870abaf877596627d4e5b02af376 (diff)
downloadpttbbs-063873ef5ff4f8dfd2952a794e237d713c3a154e.tar
pttbbs-063873ef5ff4f8dfd2952a794e237d713c3a154e.tar.gz
pttbbs-063873ef5ff4f8dfd2952a794e237d713c3a154e.tar.bz2
pttbbs-063873ef5ff4f8dfd2952a794e237d713c3a154e.tar.lz
pttbbs-063873ef5ff4f8dfd2952a794e237d713c3a154e.tar.xz
pttbbs-063873ef5ff4f8dfd2952a794e237d713c3a154e.tar.zst
pttbbs-063873ef5ff4f8dfd2952a794e237d713c3a154e.zip
More checking to violation state
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5696 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/user.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/user.c b/pttbbs/mbbsd/user.c
index 626501eb..6d3a857c 100644
--- a/pttbbs/mbbsd/user.c
+++ b/pttbbs/mbbsd/user.c
@@ -1293,7 +1293,8 @@ showplans_userec(userec_t *user)
if(user->userlevel & PERM_VIOLATELAW)
{
- const int can_save = (user->userlevel & PERM_LOGINOK) ? 1 : 0;
+ int can_save = ((user->userlevel & PERM_LOGINOK) &&
+ (user->userlevel & PERM_BASIC)) ? 1 : 0;
prints(" " ANSI_COLOR(1;31) "此人違規 %s" ANSI_RESET,
can_save ? "尚未繳交罰單" : "");