summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/clif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 6bffa5aa4..d3d3eb230 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -10269,7 +10269,7 @@ static const char *clif_process_chat_message(struct map_session_data *sd, const
srcname = packet->message;
namelen = (int)strnlen(sd->status.name, NAME_LENGTH-1); // name length (w/o zero byte)
- if (strncmp(srcname, sd->status.name, namelen) != 0 // the text must start with the speaker's name
+ if ((strncmp(srcname, sd->status.name, namelen) != 0 && strncmp(srcname, sd->fakename, namelen) != 0) // the text must start with the speaker's name
|| srcname[namelen] != ' ' || srcname[namelen+1] != ':' || srcname[namelen+2] != ' ' // followed by ' : '
) {
//Hacked message, or infamous "client desynchronize" issue where they pick one char while loading another.