From b4932b6bde66e5601d178c19f2c6023534d7917d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 28 Dec 2021 06:17:26 -0300 Subject: [TMW2] Fix @fakename command --- src/map/clif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.3-60-g2f50