summaryrefslogtreecommitdiffstats
path: root/include/perm.h
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-14 21:15:00 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-14 21:15:00 +0800
commitf3156a5477c4ca44d6d64b9c5e4897e28ea936cf (patch)
tree6058087f3876a652d0a9b7814a3c100615448f6d /include/perm.h
parentc87da8855f7f3edcd1fba6578a2c3f809cad8dc8 (diff)
downloadpttbbs-f3156a5477c4ca44d6d64b9c5e4897e28ea936cf.tar
pttbbs-f3156a5477c4ca44d6d64b9c5e4897e28ea936cf.tar.gz
pttbbs-f3156a5477c4ca44d6d64b9c5e4897e28ea936cf.tar.bz2
pttbbs-f3156a5477c4ca44d6d64b9c5e4897e28ea936cf.tar.lz
pttbbs-f3156a5477c4ca44d6d64b9c5e4897e28ea936cf.tar.xz
pttbbs-f3156a5477c4ca44d6d64b9c5e4897e28ea936cf.tar.zst
pttbbs-f3156a5477c4ca44d6d64b9c5e4897e28ea936cf.zip
better readability.
real => adminmode, HAS_PERM() => HasUserPerm(), HasPerm() => HasBoardPerm(). git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2840 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include/perm.h')
-rw-r--r--include/perm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/perm.h b/include/perm.h
index 9f88bf96..e129a991 100644
--- a/include/perm.h
+++ b/include/perm.h
@@ -52,7 +52,7 @@
#define PERM_FORWARD (PERM_BASIC) /* to do the forwarding */
#define PERM_INTERNET (PERM_LOGINOK) /* 身份認證過關的才能寄信到 Internet */
-#define HAS_PERM(x) ((x) ? cuser.userlevel & (x) : 1)
+#define HasUserPerm(x) ((x) ? cuser.userlevel & (x) : 1)
#define HAVE_PERM(x) (cuser.userlevel&(x))
#define PERM_HIDE(u) (u && (u)->userlevel & PERM_SYSOPHIDE)