Core/Scripts: Cached command definitions at first use to allow dynamic commands take security levels and help text from the database.

Core/Scripts: Removed unused function related to executing dynamic commands.

Patch by Paradox

--HG--
branch : trunk
This commit is contained in:
Spp
2010-11-03 08:35:48 +01:00
parent 38ae2062d9
commit 43a5a3ced1
2 changed files with 47 additions and 19 deletions
-1
View File
@@ -98,7 +98,6 @@ class ChatHandler
void SendGlobalGMSysMessage(const char *str);
static bool SetDataForCommandInTable(ChatCommand *table, const char* text, uint32 security, std::string const& help, std::string const& fullcommand);
bool ExecuteCommandInTables(std::vector<ChatCommand*> const& tables, const char* text, const std::string& fullcmd);
bool ExecuteCommandInTable(ChatCommand *table, const char* text, const std::string& fullcmd);
bool ShowHelpForCommand(ChatCommand *table, const char* cmd);
bool ShowHelpForSubCommands(ChatCommand *table, char const* cmd, char const* subcmd);