Subversion Repositories WoWGM

Rev

Rev 26 | Rev 32 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26 Rev 31
Line 5... Line 5...
5
 
5
 
6
#include <Console/ConsoleClient.h>
6
#include <Console/ConsoleClient.h>
7
#include <WowSvcs/ClientServices.h>
7
#include <WowSvcs/ClientServices.h>
8
 
8
 
9
 
9
 
-
 
10
/****************************************************************************
-
 
11
*
-
 
12
*   Private
-
 
13
*
-
 
14
***/
-
 
15
 
10
//===========================================================================
16
//===========================================================================
11
char const* GetWord (const char* string, char* buffer, uint bufferchars) {
17
char const* GetWord (const char* string, char* buffer, uint bufferchars) {
12
 
18
 
13
  //ASSERT(string);
19
  //ASSERT(string);
14
  //ASSERT(buffer || bufferchars);
20
  //ASSERT(buffer || bufferchars);
Line 25... Line 31...
25
}
31
}
26
 
32
 
27
 
33
 
28
/****************************************************************************
34
/****************************************************************************
29
*
35
*
30
*	Command definitions
36
*   Client GM Commands
31
*
37
*
32
***/
38
***/
33
 
39
 
34
//===========================================================================
40
//===========================================================================
35
BOOL CCommand_GMResurrect(const char *command, const char *arguments)
41
BOOL CCommand_GMResurrect (const char *command, const char *arguments) {
36
{
-
 
37
	if (command && *command) {
42
	if (command && *command) {
38
		CDataStore msg;
43
		CDataStore msg;
39
		msg.Put(CMSG_GM_RESURRECT);
44
		msg.Put(CMSG_GM_RESURRECT);
40
		msg.PutString(arguments);
45
		msg.PutString(arguments);
41
		msg.Finalize();
46
		msg.Finalize();
Line 66... Line 71...
66
}
71
}
67
 
72
 
68
 
73
 
69
/****************************************************************************
74
/****************************************************************************
70
*
75
*
71
*	External functions
76
*   External
72
*
77
*
73
***/
78
***/
74
 
79
 
75
//===========================================================================
80
//===========================================================================
76
void GMClientCommands::Install()
81
void GMClientCommands::Install () {
77
{
-
 
78
  ConsoleCommandRegister("setsecurity",CCommand_SetSecurity,GM,"Set another character's security group");
82
  ConsoleCommandRegister("setsecurity",CCommand_SetSecurity,GM,"Set another character's security group");
79
	ConsoleCommandRegister("resurrect",CCommand_GMResurrect,DEBUG,NOHELP);
83
	ConsoleCommandRegister("resurrect",CCommand_GMResurrect,DEBUG,NOHELP);
80
}
84
}
81
 
85
 
82
//===========================================================================
86
//===========================================================================
83
void GMClientCommands::Uninstall()
87
void GMClientCommands::Uninstall () {
84
{
-
 
85
  ConsoleCommandUnregister("setsecurity");
88
  ConsoleCommandUnregister("setsecurity");
86
	ConsoleCommandUnregister("resurrect");
89
	ConsoleCommandUnregister("resurrect");
87
}
90
}