summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index e6b1fd6e0..dd022b9c8 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -719,11 +719,15 @@ AtCommandType is_atcommand(const int fd, struct map_session_data* sd, const char
if (!message || !*message)
return AtCommand_None;
- str += strlen(sd->status.name);
- while (*str && (ISSPACE(*str) || (s_flag == 0 && *str == ':'))) {
- if (*str == ':')
- s_flag = 1;
- str++;
+ // temporary compatibility layer for previous implementation
+ if( *message != atcommand_symbol )
+ {
+ str += strlen(sd->status.name);
+ while (*str && (ISSPACE(*str) || (s_flag == 0 && *str == ':'))) {
+ if (*str == ':')
+ s_flag = 1;
+ str++;
+ }
}
if (!*str)