mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Core/Scripts: Changed chat command handlers to take ChatHandler* as an argument, instead of as 'this'.
Fixes commandscripts so it can be used to add custom commands without editing chat.h, chat.cpp or levelX.cpp files. Patch by Accel Closes issue 4629 --HG-- branch : trunk
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -38,7 +38,7 @@ class ChatCommand
|
||||
const char * Name;
|
||||
uint32 SecurityLevel; // function pointer required correct align (use uint32)
|
||||
bool AllowConsole;
|
||||
bool (ChatHandler::*Handler)(const char* args);
|
||||
bool (*Handler)(ChatHandler*, const char* args);
|
||||
std::string Help;
|
||||
ChatCommand * ChildCommands;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user