summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-10-16 14:39:09 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-10-16 14:39:09 +0800
commitf1dc70216212a7bf817c0debbca2f6296542b043 (patch)
tree63270c5aefd854a1cbfa4830f5b9d33cea8df53f /mbbsd/mbbsd.c
parent9ef3d37fad2ba89a358d47dc7f3d6720940c8a47 (diff)
downloadpttbbs-f1dc70216212a7bf817c0debbca2f6296542b043.tar
pttbbs-f1dc70216212a7bf817c0debbca2f6296542b043.tar.gz
pttbbs-f1dc70216212a7bf817c0debbca2f6296542b043.tar.bz2
pttbbs-f1dc70216212a7bf817c0debbca2f6296542b043.tar.lz
pttbbs-f1dc70216212a7bf817c0debbca2f6296542b043.tar.xz
pttbbs-f1dc70216212a7bf817c0debbca2f6296542b043.tar.zst
pttbbs-f1dc70216212a7bf817c0debbca2f6296542b043.zip
show chess rating not only in debug mode
let user set his attitude about talk/play with others git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2252 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 5a928602..611d603b 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -144,6 +144,7 @@ u_exit(char *mode)
brc_finalize();
cuser.invisible = currutmp->invisible;
+ cuser.withme = currutmp->withme;
cuser.pager = currutmp->pager;
memcpy(cuser.mind, currutmp->mind, 4);
setutmpbid(0);
@@ -743,6 +744,7 @@ setup_utmp(int mode)
uinfo.chess_elo_rating = cuser.chess_elo_rating;
uinfo.invisible = cuser.invisible % 2;
uinfo.pager = cuser.pager % 5;
+ uinfo.withme = cuser.withme;
memcpy(uinfo.mind, cuser.mind, 4);
#ifdef WHERE
uinfo.from_alias = where(fromhost);