summaryrefslogtreecommitdiff
path: root/src/map/charcommand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/charcommand.c')
-rw-r--r--src/map/charcommand.c5
1 files changed, 4 insertions, 1 deletions
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));