summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-08-29 00:41:20 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-08-29 00:41:20 +0800
commit952e68f6baa375ed48915e9950d67f0b07bff21b (patch)
tree116c2e05301d4ab50621e63b413275f5b2251ee6 /mbbsd
parent3c1c45a62b66ee5052a6fc4583cd5a22d67f193d (diff)
downloadpttbbs-952e68f6baa375ed48915e9950d67f0b07bff21b.tar
pttbbs-952e68f6baa375ed48915e9950d67f0b07bff21b.tar.gz
pttbbs-952e68f6baa375ed48915e9950d67f0b07bff21b.tar.bz2
pttbbs-952e68f6baa375ed48915e9950d67f0b07bff21b.tar.lz
pttbbs-952e68f6baa375ed48915e9950d67f0b07bff21b.tar.xz
pttbbs-952e68f6baa375ed48915e9950d67f0b07bff21b.tar.zst
pttbbs-952e68f6baa375ed48915e9950d67f0b07bff21b.zip
Unset all "WITHME" flag when login (but WITHME_NO left unchanged)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3402 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/mbbsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 73978d7b..6d83b645 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -927,8 +927,8 @@ setup_utmp(int mode)
uinfo.badsale = cuser.badsale;
*/
if(cuser.withme & (cuser.withme<<1) & (WITHME_ALLFLAG<<1))
- cuser.withme = 0;
- uinfo.withme = cuser.withme;
+ cuser.withme = 0; /* unset all if contradict */
+ uinfo.withme = cuser.withme & ~WITHME_ALLFLAG;
memcpy(uinfo.mind, cuser.mind, 4);
strip_nonebig5((unsigned char *)uinfo.mind, 4);
#ifdef WHERE