summaryrefslogtreecommitdiffstats
path: root/include/pttstruct.h
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-01-04 01:36:57 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-01-04 01:36:57 +0800
commitdefbdb6544e58ade4316af4a2e003568d34aa6a1 (patch)
treebc81167a8805590feaf2c65961a8ef2ad4994c93 /include/pttstruct.h
parent5166f31cd61af5481f3a418e761368e643230f38 (diff)
downloadpttbbs-defbdb6544e58ade4316af4a2e003568d34aa6a1.tar
pttbbs-defbdb6544e58ade4316af4a2e003568d34aa6a1.tar.gz
pttbbs-defbdb6544e58ade4316af4a2e003568d34aa6a1.tar.bz2
pttbbs-defbdb6544e58ade4316af4a2e003568d34aa6a1.tar.lz
pttbbs-defbdb6544e58ade4316af4a2e003568d34aa6a1.tar.xz
pttbbs-defbdb6544e58ade4316af4a2e003568d34aa6a1.tar.zst
pttbbs-defbdb6544e58ade4316af4a2e003568d34aa6a1.zip
1. add "cancel bad post" feature.
2. fix bad the bug that user won't get bad post when he is online. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3260 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include/pttstruct.h')
-rw-r--r--include/pttstruct.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h
index 78882529..362f3dd0 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -108,7 +108,8 @@ typedef struct userec_t {
char myangel[IDLEN+1]; /* 我的小天使 */
unsigned short chess_elo_rating; /* 象棋等級分 */
unsigned int withme; /* 我想找人下棋,聊天.... */
- char pad[34];
+ time4_t timeremovebadpost; /* 上次刪除劣文時間 */
+ char pad[30];
} userec_t;
/* these are flags in userec_t.uflag */
#define PAGER_FLAG 0x4 /* true if pager was OFF last session */
@@ -331,10 +332,11 @@ typedef struct msgque_t {
int msgmode;
} msgque_t;
-#define ALERT_NEW_MAIL 1
+#define ALERT_NEW_MAIL 1
#define ISNEWMAIL(utmp) utmp->alerts & ALERT_NEW_MAIL
-#define ALERT_RELOAD_PERM 2
-
+#define ALERT_PWD_PERM 2
+#define ALERT_PWD_BADPOST 4
+#define ALERT_PWD (ALERT_PWD_PERM|ALERT_PWD_BADPOST)
/* user data in shm */
/* use GAP to detect and avoid data overflow and overriding */
typedef struct userinfo_t {
@@ -349,10 +351,13 @@ typedef struct userinfo_t {
char from[27]; /* machine name the user called in from */
int from_alias;
char sex;
+ char nonuse[4];
+ /*
unsigned char goodpost;
unsigned char badpost;
unsigned char goodsale;
unsigned char badsale;
+ */
unsigned char angel;
/* friends */