1.1 --- a/core/ConCmdManager.h Sun Jul 15 17:22:47 2007 +0000
1.2 +++ b/core/ConCmdManager.h Sun Jul 15 18:51:25 2007 +0000
1.3 @@ -70,6 +70,7 @@
1.4 ConCommand *pCmd; /**< Pointer to the command itself */
1.5 List<CmdHook *> srvhooks; /**< Hooks as a server command */
1.6 List<CmdHook *> conhooks; /**< Hooks as a console command */
1.7 + AdminCmdInfo admin; /**< Admin info, if any */
1.8 };
1.9
1.10 class ConCmdManager :
1.11 @@ -100,6 +101,7 @@
1.12 ResultType DispatchClientCommand(int client, ResultType type);
1.13 void UpdateAdminCmdFlags(const char *cmd, OverrideType type, FlagBits bits);
1.14 bool LookForSourceModCommand(const char *cmd);
1.15 + bool CheckCommandAccess(int client, const char *cmd, FlagBits flags);
1.16 private:
1.17 void InternalDispatch();
1.18 ResultType RunAdminCommand(ConCmdInfo *pInfo, int client, int args);
1.19 @@ -114,6 +116,10 @@
1.20 {
1.21 return m_CmdClient;
1.22 }
1.23 + inline const List<ConCmdInfo *> & GetCommandList()
1.24 + {
1.25 + return m_CmdList;
1.26 + }
1.27 private:
1.28 Trie *m_pCmds; /* command lookup */
1.29 Trie *m_pCmdGrps; /* command group lookup */