diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-05-18 17:14:32 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-05-18 17:14:32 +0800 |
commit | d00edbdbd10efdd918837b5958dba4577be59e84 (patch) | |
tree | 8fc451c3f5443deda2d4167056dc9cf3e8546e00 /include | |
parent | 36a55220bb41463b63308ea5b2c781bdfa453e9f (diff) | |
download | pttbbs-d00edbdbd10efdd918837b5958dba4577be59e84.tar pttbbs-d00edbdbd10efdd918837b5958dba4577be59e84.tar.gz pttbbs-d00edbdbd10efdd918837b5958dba4577be59e84.tar.bz2 pttbbs-d00edbdbd10efdd918837b5958dba4577be59e84.tar.lz pttbbs-d00edbdbd10efdd918837b5958dba4577be59e84.tar.xz pttbbs-d00edbdbd10efdd918837b5958dba4577be59e84.tar.zst pttbbs-d00edbdbd10efdd918837b5958dba4577be59e84.zip |
Many changes in structure.
Add sex restriction.
git-svn-id: http://opensvn.csie.org/pttbbs/branches/scw.angel@1999 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r-- | include/proto.h | 5 | ||||
-rw-r--r-- | include/pttstruct.h | 11 |
2 files changed, 14 insertions, 2 deletions
diff --git a/include/proto.h b/include/proto.h index fbbad672..fb1c75a1 100644 --- a/include/proto.h +++ b/include/proto.h @@ -540,6 +540,9 @@ int toconnect(char *host, int port); int toread(int fd, void *buf, int len); int towrite(int fd, void *buf, int len); #endif +#ifdef PLAY_ANGEL +void pressanykey_or_callangel(void); +#endif /* syspost */ int post_msg(char* bname, char* title, char *msg, char* author); @@ -584,6 +587,8 @@ int make_connection_to_somebody(userinfo_t *uin, int timeout); #ifdef PLAY_ANGEL int t_changeangel(void); void CallAngel(void); +void SwitchBeingAngel(void); +void SwitchAngelSex(int); int t_switchangel(void); #endif diff --git a/include/pttstruct.h b/include/pttstruct.h index 353b5b53..eb0f34e4 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -121,7 +121,14 @@ typedef struct userec_t { #define LIVERIGHT 0x200 /* true if get "liveright" already */ #define REJ_OUTTAMAIL 0x400 /* true if don't accept outside mails */ #define REJECT_OUTTAMAIL (cuser.uflag2 & REJ_OUTTAMAIL) -#define BEING_ANGEL 0x1000 /* true if willing to be angel */ +#define REJ_QUESTION 0x800 /* true if don't want to be angel for a while */ +#define REJECT_QUESTION (cuser.uflag2 & REJ_QUESTION) +#define ANGEL_MASK 0x3000 +#define ANGEL_R_MAEL 0x1000 /* true if reject male */ +#define ANGEL_R_FEMAEL 0x2000 /* true if reject female */ +#define ANGEL_STATUS() ((cuser.uflag2 & ANGEL_MASK) >> 12) +#define ANGEL_SET(X) (cuser.uflag2 = (cuser.uflag2 & ~ANGEL_MASK) | \ + ((X & 3) << 12)) #define BTLEN 48 /* Length of board title */ @@ -260,7 +267,7 @@ typedef struct userinfo_t { unsigned char active; /* When allocated this field is true */ unsigned char invisible; /* Used by cloaking function in Xyz menu */ unsigned char sockactive; /* Used to coordinate talk requests */ - unsigned char being_angel; + unsigned char angel; unsigned int userlevel; unsigned char mode; /* UL/DL, Talk Mode, Chat Mode, ... */ unsigned char pager; /* pager toggle, YEA, or NA */ |