git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9394 54d463be-8e91-2dee-dedb-b68131a5f0ec

This commit is contained in:
Lance 2006-12-02 23:47:21 +00:00
parent 90352e92a2
commit ffbcbb0b54
2 changed files with 8 additions and 2 deletions

View File

@ -872,7 +872,10 @@ AtCommandType atcommand(struct map_session_data* sd, const int level, const char
return AtCommand_None; return AtCommand_None;
} }
if (*p == command_symbol || (p[0] == '|' && p[3] == command_symbol)) { // check first char, try to skip |00 (or something else) [Lance] if(p[0] == '|')
p += 3;
if (*p == command_symbol) { // check first char, try to skip |00 (or something else) [Lance]
char command[101]; char command[101];
int i = 0; int i = 0;
malloc_set(info, 0, sizeof(AtCommandInfo)); malloc_set(info, 0, sizeof(AtCommandInfo));

View File

@ -213,7 +213,10 @@ CharCommandType charcommand(struct map_session_data* sd, const int level, const
return CharCommand_None; return CharCommand_None;
} }
if (*p == command_symbol || (p[0] == '|' && p[3] == command_symbol)) { // check first char, try to skip |00 (or something else) [Lance] if(p[0] == '|')
p += 3;
if (*p == command_symbol) { // check first char, try to skip |00 (or something else) [Lance]
char command[101]; char command[101];
int i = 0; int i = 0;
malloc_set(info, 0, sizeof(CharCommandInfo)); malloc_set(info, 0, sizeof(CharCommandInfo));