summaryrefslogtreecommitdiff
path: root/src/map/clif.cpp
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-05-13 18:47:36 -0400
committermekolat <mekolat@users.noreply.github.com>2016-05-13 18:47:36 -0400
commit4b79c22885a32b50b9aa0846eb89961543b5a59e (patch)
tree462f3aa3bc54370137fd98e205905edc479d9241 /src/map/clif.cpp
parentceb7acf8291867d56b53c3f696a39e91fd79da59 (diff)
parent6707cc577dcd2ec06d6936036b93d75cda71c6b3 (diff)
downloadtmwa-4b79c22885a32b50b9aa0846eb89961543b5a59e.tar.gz
tmwa-4b79c22885a32b50b9aa0846eb89961543b5a59e.tar.bz2
tmwa-4b79c22885a32b50b9aa0846eb89961543b5a59e.tar.xz
tmwa-4b79c22885a32b50b9aa0846eb89961543b5a59e.zip
Merge pull request #224 from mekolat/npctalk
Npctalk modifications
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 d4b16a7..94a6dd1 100644
--- a/src/map/clif.cpp
+++ b/src/map/clif.cpp
@@ -3809,7 +3809,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;