summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/pttstruct.h3
-rw-r--r--mbbsd/mbbsd.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h
index edffe721..7fa188e3 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -301,7 +301,8 @@ typedef struct userinfo_t {
int friend_online[MAX_FRIEND];/* point到線上好友 utmpshm的位置 */
/* 好友比較的cache 前兩個bit是狀態 */
int reject[MAX_REJECT];
- char pad[4];
+ unsigned short int chess_elo_rating;
+ char pad[2];
int lock;
int friendtotal; /* 好友比較的cache 大小 */
char msgcount;
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index ad35eef2..33277405 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -736,6 +736,7 @@ setup_utmp(int mode)
uinfo.chc_win = cuser.chc_win;
uinfo.chc_lose = cuser.chc_lose;
uinfo.chc_tie = cuser.chc_tie;
+ uinfo.chess_elo_rating = cuser.chess_elo_rating;
uinfo.invisible = cuser.invisible % 2;
uinfo.pager = cuser.pager % 5;
memcpy(uinfo.mind, cuser.mind, 4);