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.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/map/charcommand.c b/src/map/charcommand.c
index dc16f399b..d5f819625 100644
--- a/src/map/charcommand.c
+++ b/src/map/charcommand.c
@@ -287,11 +287,15 @@ CharCommandType is_charcommand(const int fd, struct map_session_data* sd, const
if (!message || !*message)
return CharCommand_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 != charcommand_symbol )
+ {
+ str += strlen(sd->status.name);
+ while (*str && (ISSPACE(*str) || (s_flag == 0 && *str == ':'))) {
+ if (*str == ':')
+ s_flag = 1;
+ str++;
+ }
}
if (!*str)