summaryrefslogtreecommitdiff
path: root/src/map/clif.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/clif.cpp')
-rw-r--r--src/map/clif.cpp3
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;