diff options
author | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-12-02 23:47:21 +0000 |
---|---|---|
committer | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-12-02 23:47:21 +0000 |
commit | 2467c9cb40b5f630bb3d1462cb71072881f1b8e7 (patch) | |
tree | 9cc1b43ea5c37268b86a6ff9366610c877b4d05a /src/map/charcommand.c | |
parent | dab02fd8dd9f4836be4577599442a782d314c37b (diff) | |
download | hercules-2467c9cb40b5f630bb3d1462cb71072881f1b8e7.tar.gz hercules-2467c9cb40b5f630bb3d1462cb71072881f1b8e7.tar.bz2 hercules-2467c9cb40b5f630bb3d1462cb71072881f1b8e7.tar.xz hercules-2467c9cb40b5f630bb3d1462cb71072881f1b8e7.zip |
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9394 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/charcommand.c')
-rw-r--r-- | src/map/charcommand.c | 5 |
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));
|