summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2013-06-11 04:45:11 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2013-06-11 04:45:11 +0800
commitf016a6dc1db15d57540cfdd5d7633ef2214e7073 (patch)
treeb76ed854dafee81ce40073f0ff732615dd64c56b
parent10f8229f7958697a69946b63ec5588fa0eebb3b4 (diff)
downloadpttbbs-f016a6dc1db15d57540cfdd5d7633ef2214e7073.tar
pttbbs-f016a6dc1db15d57540cfdd5d7633ef2214e7073.tar.gz
pttbbs-f016a6dc1db15d57540cfdd5d7633ef2214e7073.tar.bz2
pttbbs-f016a6dc1db15d57540cfdd5d7633ef2214e7073.tar.lz
pttbbs-f016a6dc1db15d57540cfdd5d7633ef2214e7073.tar.xz
pttbbs-f016a6dc1db15d57540cfdd5d7633ef2214e7073.tar.zst
pttbbs-f016a6dc1db15d57540cfdd5d7633ef2214e7073.zip
Violated user cannot set visibility, so let's make them always visible.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5846 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/mbbsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/mbbsd.c b/pttbbs/mbbsd/mbbsd.c
index 7eed6d41..271af0e7 100644
--- a/pttbbs/mbbsd/mbbsd.c
+++ b/pttbbs/mbbsd/mbbsd.c
@@ -938,7 +938,7 @@ setup_utmp(int mode)
uinfo.dark_win = cuser.dark_win;
uinfo.dark_lose = cuser.dark_lose;
uinfo.dark_tie = cuser.dark_tie;
- uinfo.invisible = cuser.invisible % 2;
+ uinfo.invisible = (cuser.invisible % 2) && (!HasUserPerm(PERM_VIOLATELAW));
uinfo.pager = cuser.pager % PAGER_MODES;
uinfo.withme = cuser.withme & ~WITHME_ALLFLAG;