summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-12 11:24:46 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-12 11:24:46 +0800
commitbf0ff170400889443fd3e3fffc6b1ae2b1738d68 (patch)
tree33b84a25b6b5809e2c526515de2b516f634ecb4d /mbbsd/bbs.c
parent4d791013a709c9269c4e4872fd9d379168d0f47a (diff)
downloadpttbbs-bf0ff170400889443fd3e3fffc6b1ae2b1738d68.tar
pttbbs-bf0ff170400889443fd3e3fffc6b1ae2b1738d68.tar.gz
pttbbs-bf0ff170400889443fd3e3fffc6b1ae2b1738d68.tar.bz2
pttbbs-bf0ff170400889443fd3e3fffc6b1ae2b1738d68.tar.lz
pttbbs-bf0ff170400889443fd3e3fffc6b1ae2b1738d68.tar.xz
pttbbs-bf0ff170400889443fd3e3fffc6b1ae2b1738d68.tar.zst
pttbbs-bf0ff170400889443fd3e3fffc6b1ae2b1738d68.zip
move global variable xuser into local, save 512 bytes.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2596 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index af2b2fd9..093f2854 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -1963,7 +1963,8 @@ del_post(int ent, fileheader_t * fhdr, char *direct)
if (!(inc_badpost(userid, 1) % 10)){
post_violatelaw(userid, "Ptt 系統警察", "劣文累計十篇", "罰單一張");
mail_violatelaw(userid, "Ptt 系統警察", "劣文累計十篇", "罰單一張");
- xuser.userlevel |= PERM_VIOLATELAW;
+ // XXX xuser 未指定, 也未寫回檔案, 沒有作用
+ //xuser.userlevel |= PERM_VIOLATELAW;
}
mail_id(userid, genbuf, newpath, cuser.userid);
}