From 2467c9cb40b5f630bb3d1462cb71072881f1b8e7 Mon Sep 17 00:00:00 2001 From: Lance Date: Sat, 2 Dec 2006 23:47:21 +0000 Subject: git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9394 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 5 ++++- src/map/charcommand.c | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'src/map') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 9c066556a..8e1fec75c 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -872,7 +872,10 @@ AtCommandType atcommand(struct map_session_data* sd, const int level, const char 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]; int i = 0; malloc_set(info, 0, sizeof(AtCommandInfo)); diff --git a/src/map/charcommand.c b/src/map/charcommand.c index df45d2e4e..0e796fba6 100644 --- a/src/map/charcommand.c +++ b/src/map/charcommand.c @@ -213,7 +213,10 @@ CharCommandType charcommand(struct map_session_data* sd, const int level, const 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]; int i = 0; malloc_set(info, 0, sizeof(CharCommandInfo)); -- cgit v1.2.3-70-g09d2