summaryrefslogtreecommitdiff
path: root/src/map/send.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-23 01:16:28 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-23 01:16:28 +0300
commitca0677235f97d64bf6acc20d40e942c5add21698 (patch)
treedc62a47e9affc7d3d927ac4129f1da6e015806e2 /src/map/send.c
parentf97c4884316bfe3c5f59c1271dfbf0e19ca716bc (diff)
downloadevol-hercules-ca0677235f97d64bf6acc20d40e942c5add21698.tar.gz
evol-hercules-ca0677235f97d64bf6acc20d40e942c5add21698.tar.bz2
evol-hercules-ca0677235f97d64bf6acc20d40e942c5add21698.tar.xz
evol-hercules-ca0677235f97d64bf6acc20d40e942c5add21698.zip
In pet chat message include owner name.
Diffstat (limited to 'src/map/send.c')
-rw-r--r--src/map/send.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/send.c b/src/map/send.c
index 067ff5f..6503719 100644
--- a/src/map/send.c
+++ b/src/map/send.c
@@ -266,11 +266,11 @@ void send_pet_say(struct map_session_data *sd, const char *const message)
return;
const char *const name = sd->pd->pet.name;
- const int len = 24 + 4 + strlen(message);
+ const int len = 24 + 7 + strlen(message);
char *buf = NULL;
CREATE(buf, char, len);
- snprintf(buf, len, "%s : %s", name, message);
+ snprintf(buf, len, "%s's %s : %s", sd->status.name, name, message);
buf[len - 1] = 0;
clif->GlobalMessage(&sd->pd->bl, buf);
aFree(buf);