diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-09-14 00:15:49 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-09-14 00:15:49 +0800 |
commit | 05dd93de8f37b2fcb2c7ed26c0cb18e550678494 (patch) | |
tree | 9f4f343ac67ac431fd79d7e1cdd2f966bcc12240 /include | |
parent | 1b81dedc462dbe6f2a3b4d8249843dd8dc834435 (diff) | |
download | pttbbs-05dd93de8f37b2fcb2c7ed26c0cb18e550678494.tar pttbbs-05dd93de8f37b2fcb2c7ed26c0cb18e550678494.tar.gz pttbbs-05dd93de8f37b2fcb2c7ed26c0cb18e550678494.tar.bz2 pttbbs-05dd93de8f37b2fcb2c7ed26c0cb18e550678494.tar.lz pttbbs-05dd93de8f37b2fcb2c7ed26c0cb18e550678494.tar.xz pttbbs-05dd93de8f37b2fcb2c7ed26c0cb18e550678494.tar.zst pttbbs-05dd93de8f37b2fcb2c7ed26c0cb18e550678494.zip |
* performance improve: clear alerts when cuser was reloaded.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4837 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r-- | include/pttstruct.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h index 4a8b76a9..e9453f5a 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -175,11 +175,11 @@ typedef struct boardheader_t { /* 256 bytes */ uint32_t brdattr; /* board的屬性 */ char chesscountry; /* 棋國 */ uint8_t vote_limit_posts; /* 連署 : 文章篇數下限 */ - uint8_t expired_vote_limit_logins; /* (已停用) 連署 : 登入次數下限 */ + uint8_t vote_limit_logins; /* 連署 : 登入次數下限 */ uint8_t vote_limit_regtime; /* 連署 : 註冊時間限制 */ time4_t bupdate; /* note update time */ uint8_t post_limit_posts; /* 發表文章 : 文章篇數下限 */ - uint8_t expired_post_limit_logins; /* (已停用) 發表文章 : 登入次數下限 */ + uint8_t post_limit_logins; /* 發表文章 : 登入次數下限 */ uint8_t post_limit_regtime; /* 發表文章 : 註冊時間限制 */ uint8_t bvote; /* 正舉辦 Vote 數 */ time4_t vtime; /* Vote close time */ @@ -315,8 +315,10 @@ typedef struct msgque_t { #define ALERT_NEW_MAIL (0x01) #define ISNEWMAIL(utmp) (utmp->alerts & ALERT_NEW_MAIL) +#define CLEAR_ALERT_NEWMAIL(utmp) { utmp->alerts &= ~ALERT_NEW_MAIL; } #define ALERT_PWD_PERM (0x02) #define ISNEWPERM(utmp) (utmp->alerts & ALERT_PWD_PERM) +#define CLEAR_ALERT_NEWPERM(utmp) { utmp->alerts &= ~ALERT_PWD_PERM; } // userinfo_t.angelpause values #define ANGELPAUSE_NONE (0) // reject none (accept all) |