From 6707cc577dcd2ec06d6936036b93d75cda71c6b3 Mon Sep 17 00:00:00 2001 From: mekolat Date: Thu, 12 May 2016 14:43:23 -0400 Subject: don't send name in 0x8d if shorter than 4 char long --- src/map/clif.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/map/clif.cpp') 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 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; -- cgit v1.2.3-70-g09d2