diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-23 11:19:01 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-23 11:19:01 +0800 |
commit | 9f968c8886542a57ef9a9c56730857252100acd7 (patch) | |
tree | b771ff4bf4d81586726230d181fc87836207a0b1 /include | |
parent | 592c2af2c653d8525e9809effb4dddb2b6d9ff96 (diff) | |
download | pttbbs-9f968c8886542a57ef9a9c56730857252100acd7.tar pttbbs-9f968c8886542a57ef9a9c56730857252100acd7.tar.gz pttbbs-9f968c8886542a57ef9a9c56730857252100acd7.tar.bz2 pttbbs-9f968c8886542a57ef9a9c56730857252100acd7.tar.lz pttbbs-9f968c8886542a57ef9a9c56730857252100acd7.tar.xz pttbbs-9f968c8886542a57ef9a9c56730857252100acd7.tar.zst pttbbs-9f968c8886542a57ef9a9c56730857252100acd7.zip |
debug of segfault on userlist
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1821 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r-- | include/perm.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/perm.h b/include/perm.h index 2d676bae..02c03d0f 100644 --- a/include/perm.h +++ b/include/perm.h @@ -11,7 +11,7 @@ #define PERM_CLOAK 000000000100 /* 目前隱形中 */ #define PERM_SEECLOAK 000000000200 /* 看見忍者 */ #define PERM_XEMPT 000000000400 /* 永久保留帳號 */ -#define PERM_DENYPOST 000000001000 /* 站長隱身術 */ +#define PERM_SYSOPHIDE 000000001000 /* 站長隱身術 */ #define PERM_BM 000000002000 /* 板主 */ #define PERM_ACCOUNTS 000000004000 /* 帳號總管 */ #define PERM_CHATROOM 000000010000 /* 聊天室總管 */ @@ -51,8 +51,7 @@ #define HAS_PERM(x) ((x) ? cuser.userlevel & (x) : 1) #define HAVE_PERM(x) (cuser.userlevel&(x)) -#define PERM_HIDE(u) ((u)->userlevel & PERM_SYSOP && \ - (u)->userlevel & PERM_DENYPOST) +#define PERM_HIDE(u) (u && (u)->userlevel & PERM_SYSOPHIDE) #define IS_BOARD(bptr) ((bptr)->brdname[0] && \ !((bptr)->brdattr & BRD_GROUPBOARD)) |