aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Chat/Chat.h
diff options
context:
space:
mode:
authorSpp <spp@jorge.gr>2013-08-30 13:47:43 +0200
committerSpp <spp@jorge.gr>2013-08-30 13:57:09 +0200
commit3232b69ff3b12441723349e2febe74f81d98cd24 (patch)
treea2d197801193cd9f94a6aee84841d33493d2530d /src/server/game/Chat/Chat.h
parente375c6075b214b85599cf94364674cc3bb4eea8a (diff)
Core/RBAC: Move commands security to RBAC (using generic RBAC Permissions)
- Warning: This will break commands for any custom security level
Diffstat (limited to 'src/server/game/Chat/Chat.h')
-rw-r--r--src/server/game/Chat/Chat.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/game/Chat/Chat.h b/src/server/game/Chat/Chat.h
index b6798a9e391..405bf7384ae 100644
--- a/src/server/game/Chat/Chat.h
+++ b/src/server/game/Chat/Chat.h
@@ -21,6 +21,7 @@
#include "SharedDefines.h"
#include "WorldSession.h"
+#include "RBAC.h"
#include <vector>
@@ -38,7 +39,7 @@ class ChatCommand
{
public:
const char * Name;
- uint32 SecurityLevel; // function pointer required correct align (use uint32)
+ uint32 Permission; // function pointer required correct align (use uint32)
bool AllowConsole;
bool (*Handler)(ChatHandler*, const char* args);
std::string Help;
@@ -129,7 +130,7 @@ class ChatHandler
bool ShowHelpForCommand(ChatCommand* table, const char* cmd);
protected:
explicit ChatHandler() : m_session(NULL), sentErrorMessage(false) {} // for CLI subclass
- static bool SetDataForCommandInTable(ChatCommand* table, const char* text, uint32 security, std::string const& help, std::string const& fullcommand);
+ static bool SetDataForCommandInTable(ChatCommand* table, const char* text, uint32 permission, std::string const& help, std::string const& fullcommand);
bool ExecuteCommandInTable(ChatCommand* table, const char* text, std::string const& fullcmd);
bool ShowHelpForSubCommands(ChatCommand* table, char const* cmd, char const* subcmd);