diff options
author | mekolat <mekolat@users.noreply.github.com> | 2016-05-12 14:43:23 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-05-12 14:43:23 -0400 |
commit | 6707cc577dcd2ec06d6936036b93d75cda71c6b3 (patch) | |
tree | bf045cc38b7e800db0e36ee1c7ea85ee00c77b78 | |
parent | a41bf92b1b9f604a8a8527a18d7077dad985b1a8 (diff) | |
download | tmwa-6707cc577dcd2ec06d6936036b93d75cda71c6b3.tar.gz tmwa-6707cc577dcd2ec06d6936036b93d75cda71c6b3.tar.bz2 tmwa-6707cc577dcd2ec06d6936036b93d75cda71c6b3.tar.xz tmwa-6707cc577dcd2ec06d6936036b93d75cda71c6b3.zip |
don't send name in 0x8d if shorter than 4 char long
-rw-r--r-- | src/map/clif.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/clif.cpp b/src/map/clif.cpp index bd7f4ef..894f2e7 100644 --- a/src/map/clif.cpp +++ b/src/map/clif.cpp @@ -3806,7 +3806,8 @@ static void clif_message_sub(Buffer& buf, dumb_ptr<block_list> bl, AString msg) { VString<23> name = battle_get_name(bl); - msg = STRPRINTF("%s : %s"_fmt, name, msg); + if (name.size() >= 4) // client limitation + msg = STRPRINTF("%s : %s"_fmt, name, msg); size_t msg_len = msg.size() + 1; if (msg_len + 16 > 512) return; |