summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/atcommand.c3
-rw-r--r--src/map/charcommand.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 6289d6027..9c066556a 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -849,6 +849,7 @@ is_atcommand(const int fd, struct map_session_data* sd, const char* message) {
s_flag = 1;
str++;
}
+
if (!*str)
return AtCommand_None;
@@ -871,7 +872,7 @@ AtCommandType atcommand(struct map_session_data* sd, const int level, const char
return AtCommand_None;
}
- if (*p == command_symbol) { // check first char.
+ if (*p == command_symbol || (p[0] == '|' && p[3] == 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 0b6bd8c60..df45d2e4e 100644
--- a/src/map/charcommand.c
+++ b/src/map/charcommand.c
@@ -190,6 +190,7 @@ is_charcommand(const int fd, struct map_session_data* sd, const char* message) {
s_flag = 1;
str++;
}
+
if (!*str)
return CharCommand_None;
@@ -212,7 +213,7 @@ CharCommandType charcommand(struct map_session_data* sd, const int level, const
return CharCommand_None;
}
- if (*p == command_symbol) { // check first char.
+ if (*p == command_symbol || (p[0] == '|' && p[3] == 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));