From c8fbdde7e4edf0f50865dd627ed8294a4fa532f4 Mon Sep 17 00:00:00 2001 From: kcwu Date: Mon, 17 Jan 2005 11:34:55 +0000 Subject: clear bad 'withme' flags git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2404 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mbbsd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mbbsd') 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); -- cgit v1.2.3