summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-17 19:34:55 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-17 19:34:55 +0800
commitc8fbdde7e4edf0f50865dd627ed8294a4fa532f4 (patch)
tree7db676d83c5435a28c5d09c40c19b1ac1e615178 /mbbsd
parent0b75460b2ad218865974ec159117752223f5f271 (diff)
downloadpttbbs-c8fbdde7e4edf0f50865dd627ed8294a4fa532f4.tar
pttbbs-c8fbdde7e4edf0f50865dd627ed8294a4fa532f4.tar.gz
pttbbs-c8fbdde7e4edf0f50865dd627ed8294a4fa532f4.tar.bz2
pttbbs-c8fbdde7e4edf0f50865dd627ed8294a4fa532f4.tar.lz
pttbbs-c8fbdde7e4edf0f50865dd627ed8294a4fa532f4.tar.xz
pttbbs-c8fbdde7e4edf0f50865dd627ed8294a4fa532f4.tar.zst
pttbbs-c8fbdde7e4edf0f50865dd627ed8294a4fa532f4.zip
clear bad 'withme' flags
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2404 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/mbbsd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index e0eacb69..96981179 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -754,6 +754,8 @@ setup_utmp(int mode)
uinfo.chess_elo_rating = cuser.chess_elo_rating;
uinfo.invisible = cuser.invisible % 2;
uinfo.pager = cuser.pager % 5;
+ if(cuser.withme & (cuser.withme<<1) & (WITHME_ALLFLAG<<1))
+ cuser.withme=0;
uinfo.withme = cuser.withme;
memcpy(uinfo.mind, cuser.mind, 4);
strip_nonebig5(uinfo.mind, 4);