diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-12-28 06:17:26 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-12-28 06:17:26 -0300 |
commit | b4932b6bde66e5601d178c19f2c6023534d7917d (patch) | |
tree | af8b2e693701b5d39b591db4de1f93eebed4fac3 | |
parent | 053e2251dc19faf17326e408716e43ae19c5280a (diff) | |
download | hercules-b4932b6bde66e5601d178c19f2c6023534d7917d.tar.gz hercules-b4932b6bde66e5601d178c19f2c6023534d7917d.tar.bz2 hercules-b4932b6bde66e5601d178c19f2c6023534d7917d.tar.xz hercules-b4932b6bde66e5601d178c19f2c6023534d7917d.zip |
[TMW2] Fix @fakename command
-rw-r--r-- | src/map/clif.c | 2 |
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. |