summaryrefslogtreecommitdiffstats
path: root/include
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 /include
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 'include')
-rw-r--r--include/pttstruct.h22
1 files changed, 19 insertions, 3 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h
index 7fa188e3..c6bf8107 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -100,7 +100,8 @@ typedef struct userec_t {
unsigned char badsale; /* 競標 壞的評價 */
char myangel[IDLEN+1]; /* 我的小天使 */
unsigned short chess_elo_rating; /* 象棋等級分 */
- char pad[52];
+ unsigned int withme;
+ char pad[48];
} userec_t;
/* these are flags in userec_t.uflag */
#define PAGER_FLAG 0x4 /* true if pager was OFF last session */
@@ -125,6 +126,21 @@ typedef struct userec_t {
#define REJ_OUTTAMAIL 0x400 /* true if don't accept outside mails */
#define REJECT_OUTTAMAIL (cuser.uflag2 & REJ_OUTTAMAIL)
+/* flags in userec_t.withme */
+#define WITHME_ALLFLAG 0x55555555
+#define WITHME_TALK 0x00000001
+#define WITHME_NOTALK 0x00000002
+#define WITHME_FIVE 0x00000004
+#define WITHME_NOFIVE 0x00000008
+#define WITHME_PAT 0x00000010
+#define WITHME_NOPAT 0x00000020
+#define WITHME_CHESS 0x00000040
+#define WITHME_NOCHESS 0x00000080
+#define WITHME_DARK 0x00000100
+#define WITHME_NODARK 0x00000200
+#define WITHME_GO 0x00000400
+#define WITHME_NOGO 0x00000800
+
#ifdef PLAY_ANGEL
#define REJ_QUESTION 0x800 /* true if don't want to be angel for a while */
#define REJECT_QUESTION (cuser.uflag2 & REJ_QUESTION)
@@ -273,6 +289,7 @@ typedef struct msgque_t {
int msgmode;
} msgque_t;
+/* user data in shm */
typedef struct userinfo_t {
int uid; /* Used to find user name in passwd file */
pid_t pid; /* kill() to notify user of talk request */
@@ -307,8 +324,7 @@ typedef struct userinfo_t {
int friendtotal; /* 好友比較的cache 大小 */
char msgcount;
msgque_t msgs[MAX_MSGS];
- // uptime 好像沒用到
- time_t uptime;
+ unsigned int withme;
time_t lastact; /* 上次使用者動的時間 */
unsigned int brc_id;
unsigned char lockmode; /* 不准 multi_login 玩的東西 */