diff options
author | Philipp Sehmisch <mana@crushnet.org> | 2010-01-18 16:40:22 +0100 |
---|---|---|
committer | Philipp Sehmisch <mana@crushnet.org> | 2010-01-18 16:47:29 +0100 |
commit | 757e2a56e546d7e266660e9670a14d8043924cb2 (patch) | |
tree | efe0ae9c0c2bf359225925eb021c2fd696a97d44 /src/defines.h | |
parent | dfc6875e292e6b4ff26506a42d4becbe440e61fc (diff) | |
download | manaserv-757e2a56e546d7e266660e9670a14d8043924cb2.tar.gz manaserv-757e2a56e546d7e266660e9670a14d8043924cb2.tar.bz2 manaserv-757e2a56e546d7e266660e9670a14d8043924cb2.tar.xz manaserv-757e2a56e546d7e266660e9670a14d8043924cb2.zip |
Reverted the accountserver-affecting changes of commits a9a87aea and dfc6875e - doesn't work out the way I planned.
Diffstat (limited to 'src/defines.h')
-rw-r--r-- | src/defines.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/defines.h b/src/defines.h index ad75a121..6496ee26 100644 --- a/src/defines.h +++ b/src/defines.h @@ -22,6 +22,24 @@ #define DEFINES_H /** + * Enumeration type for account levels. + * A normal player would have permissions of 1 + * A tester would have permissions of 3 (AL_PLAYER | AL_TESTER) + * A dev would have permissions of 7 (AL_PLAYER | AL_TESTER | AL_DEV) + * A gm would have permissions of 11 (AL_PLAYER | AL_TESTER | AL_GM) + * A admin would have permissions of 255 (*) + */ +enum +{ + AL_BANNED = 0, /**< This user is currently banned. */ + AL_PLAYER = 1, /**< User has regular rights. */ + AL_TESTER = 2, /**< User can perform testing tasks. */ + AL_DEV = 4, /**< User is a developer and can perform dev tasks */ + AL_GM = 8, /**< User is a moderator and can perform mod tasks */ + AL_ADMIN = 128 /**< User can perform administrator tasks. */ +}; + +/** * Guild member permissions * Members with NONE cannot invite users or set permissions * Members with TOPIC_CHANGE can change the guild channel topic |