From 952e68f6baa375ed48915e9950d67f0b07bff21b Mon Sep 17 00:00:00 2001 From: scw Date: Mon, 28 Aug 2006 16:41:20 +0000 Subject: 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 --- mbbsd/mbbsd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mbbsd') 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 -- cgit v1.2.3