Subversion Repositories WoWGM

Rev

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

Rev 25 Rev 30
Line 22... Line 22...
22
  ClientServices_Send(&msg);
22
  ClientServices_Send(&msg);
23
  return TRUE;
23
  return TRUE;
24
}
24
}
25
 
25
 
26
//===========================================================================
26
//===========================================================================
-
 
27
BOOL CCommand_Bug(char const* command, char const* args) {
-
 
28
  //TODO:
-
 
29
  //ASSERT(command);
-
 
30
 
-
 
31
  unsigned int category;
-
 
32
 
-
 
33
  if (!SStrCmpI(command, "bug"))
-
 
34
    category = 0;
-
 
35
  else if (!SStrCmpI(command, "suggestion"))
-
 
36
    category = 1;
-
 
37
 
-
 
38
  if (ClientServices_Report(category, args))
-
 
39
    ConsolePrintf("%s submitted", command);
-
 
40
  else
-
 
41
    ConsolePrintf("%s submission failed", command);
-
 
42
 
-
 
43
  return TRUE;
-
 
44
}
-
 
45
 
-
 
46
//===========================================================================
27
BOOL CCommand_CreateItem(char const* command, char const* arguments)
47
BOOL CCommand_CreateItem(char const* command, char const* arguments)
28
{
48
{
29
	char string[256];
49
	char string[256];
30
	SStrCopy(string, arguments, 0xffffffff);
50
	SStrCopy(string, arguments, 0xffffffff);
31
	char *token = 0;
51
	char *token = 0;