From 103d4793f00b2dd592739f686e90370c2d8953a3 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 29 Nov 2011 21:30:22 +0200 Subject: Create the necessary API for /giveme and /give and implement those commands; also sort out the scripts a bit --- src/auth.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/auth.h') diff --git a/src/auth.h b/src/auth.h index 5ea697a6a..9939632a9 100644 --- a/src/auth.h +++ b/src/auth.h @@ -20,10 +20,11 @@ with this program; if not, write to the Free Software Foundation, Inc., #ifndef AUTH_HEADER #define AUTH_HEADER +#include #include #include #include -#include "common_irrlicht.h" +#include "irrlichttypes.h" #include "exceptions.h" // Player privileges. These form a bitmask stored in the privs field @@ -39,6 +40,7 @@ const u64 PRIV_SERVER = 16; // Can manage the server (e.g. shutodwn const u64 PRIV_SHOUT = 32; // Can broadcast chat messages to all // players const u64 PRIV_BAN = 64; // Can ban players +const u64 PRIV_GIVE = 128; // Can give stuff // Default privileges - these can be overriden for new players using the // config option "default_privs" - however, this value still applies for @@ -47,6 +49,8 @@ const u64 PRIV_DEFAULT = PRIV_BUILD|PRIV_SHOUT; const u64 PRIV_ALL = 0x7FFFFFFFFFFFFFFFULL; const u64 PRIV_INVALID = 0x8000000000000000ULL; +std::set privsToSet(u64 privs); + // Convert a privileges value into a human-readable string, // with each component separated by a comma. std::string privsToString(u64 privs); -- cgit v1.2.3