diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-02 09:55:21 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-02 09:55:21 +0800 |
commit | 20a09fdf769533f7efc09990481e131f1e289874 (patch) | |
tree | 817f574143a5ad6382a8f216956f3c7e5bf7891e /include | |
parent | 1fcc5da29d40392d24c3dc5f9afd65290ab6ddbe (diff) | |
download | pttbbs-20a09fdf769533f7efc09990481e131f1e289874.tar pttbbs-20a09fdf769533f7efc09990481e131f1e289874.tar.gz pttbbs-20a09fdf769533f7efc09990481e131f1e289874.tar.bz2 pttbbs-20a09fdf769533f7efc09990481e131f1e289874.tar.lz pttbbs-20a09fdf769533f7efc09990481e131f1e289874.tar.xz pttbbs-20a09fdf769533f7efc09990481e131f1e289874.tar.zst pttbbs-20a09fdf769533f7efc09990481e131f1e289874.zip |
iswritable_stat, isvisible_stat
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@270 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r-- | include/proto.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/proto.h b/include/proto.h index d80f0adc..97e8b970 100644 --- a/include/proto.h +++ b/include/proto.h @@ -1,4 +1,4 @@ -/* $Id: proto.h,v 1.18 2002/05/24 18:24:11 ptt Exp $ */ +/* $Id: proto.h,v 1.19 2002/06/02 01:55:19 in2 Exp $ */ #ifndef INCLUDE_PROTO_H #define INCLUDE_PROTO_H @@ -427,12 +427,18 @@ void post_change_perm(int oldperm, int newperm, char *sysopid, char *userid); void give_money_post(char *userid, int money); /* talk */ +#define iswritable(uentp) \ + (iswritable_stat(uentp, friend_stat(currutmp, uentp))) +#define isvisible(me, uentp) \ + (isvisible_stat(currutmp, uentp, friend_stat(me, uentp))) + +int iswritable_stat(userinfo_t *uentp, int fri_stat); +int isvisible_stat(userinfo_t * me, userinfo_t * uentp, int fri_stat); int cmpwatermtime(const void *a, const void *b); //void water_scr(water_t *tw, int which, char type); void my_write2(void); int t_idle(); char *modestring(userinfo_t * uentp, int simple); -int isvisible(userinfo_t * me, userinfo_t * uentp); int t_users(); int cmpuids(int uid, userinfo_t * urec); int my_write(pid_t pid, char *hint, char *id, int flag, userinfo_t *); @@ -449,6 +455,7 @@ int logout_friend_online(); int login_friend_online(); int isvisible_uid(int tuid); int friend_stat(userinfo_t *me, userinfo_t * ui); +int call_in(userinfo_t *uentp, int fri_stat); /* tmpjack */ int reg_barbq(); |