summaryrefslogtreecommitdiff
path: root/src/map/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/parse.c')
-rw-r--r--src/map/parse.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/map/parse.c b/src/map/parse.c
index 2e145dc..b2d66c0 100644
--- a/src/map/parse.c
+++ b/src/map/parse.c
@@ -96,3 +96,15 @@ void map_parse_part_channel(int fd)
channel->leave(sd->channels[k], sd);
}
}
+
+void map_parse_pet_say(int fd)
+{
+ char message[500];
+
+ struct map_session_data* sd = (struct map_session_data*)session[fd]->session_data;
+ const int len = RFIFOW(fd, 2);
+ if (len > 500 || len < 6)
+ return;
+ safestrncpy(message, (char*)RFIFOP(fd, 4), len - 4);
+ send_pet_say(sd, message);
+}