summaryrefslogtreecommitdiffstats
path: root/include/pttstruct.h
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-02 14:41:31 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-02 14:41:31 +0800
commit702edad799fc813d84a29673de87d7e58854ed39 (patch)
tree4c5792a97bb89ea4161c6a693ac6b7c29df64f50 /include/pttstruct.h
parentc9def28ad0172a5066e63bef771cfd1c325a9e40 (diff)
downloadpttbbs-702edad799fc813d84a29673de87d7e58854ed39.tar
pttbbs-702edad799fc813d84a29673de87d7e58854ed39.tar.gz
pttbbs-702edad799fc813d84a29673de87d7e58854ed39.tar.bz2
pttbbs-702edad799fc813d84a29673de87d7e58854ed39.tar.lz
pttbbs-702edad799fc813d84a29673de87d7e58854ed39.tar.xz
pttbbs-702edad799fc813d84a29673de87d7e58854ed39.tar.zst
pttbbs-702edad799fc813d84a29673de87d7e58854ed39.zip
- angel system: extend pager modes to 3 types (accept, reject new, reject all)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4064 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include/pttstruct.h')
-rw-r--r--include/pttstruct.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h
index d3bc6602..89b4c6b7 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -274,10 +274,8 @@ typedef struct fileheader_t {
/* values of msgque_t::msgmode */
#define MSGMODE_TALK 0
#define MSGMODE_WRITE 1
-#ifdef PLAY_ANGEL
#define MSGMODE_FROMANGEL 2
#define MSGMODE_TOANGEL 3
-#endif
typedef struct msgque_t {
pid_t pid;
@@ -296,6 +294,13 @@ typedef struct msgque_t {
// #define ALERT_PWD_POSTS (0x40)
#define ALERT_PWD_RELOAD (0x80) // reload entire pwd
#define ALERT_PWD (ALERT_PWD_PERM|ALERT_PWD_BADPOST|ALERT_PWD_GOODPOST|ALERT_PWD_JUSTIFY|ALERT_PWD_RELOAD)
+
+// userinfo_t.angelpause values
+#define ANGELPAUSE_NONE (0) // reject none (accept all)
+#define ANGELPAUSE_REJNEW (1) // reject only new requests
+#define ANGELPAUSE_REJALL (2) // reject all requests
+#define ANGELPAUSE_MODES (3) // max value, used as (angelpause % ANGELPAUSE_MODES)
+
/* user data in shm */
/* use GAP to detect and avoid data overflow and overriding */
typedef struct userinfo_t {