summaryrefslogtreecommitdiff
path: root/src/emap/send.c
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2020-05-20 17:04:04 +0000
committerHelianthella <mekolat+github@gmail.com>2020-05-20 17:29:54 +0000
commit12d81c4f8fff03eb01636a0eb99c6fccf1c13726 (patch)
tree667f5867d34dcf451872945e80d29dffbd32fbf0 /src/emap/send.c
parent40fa6d72362f1aea9f67e628b10c510234aa2f23 (diff)
downloadevol-hercules-onlinelist2.tar.gz
evol-hercules-onlinelist2.tar.bz2
evol-hercules-onlinelist2.tar.xz
evol-hercules-onlinelist2.zip
add support for SMSG_ONLINE_LIST2onlinelist2
Diffstat (limited to 'src/emap/send.c')
-rw-r--r--src/emap/send.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/emap/send.c b/src/emap/send.c
index 08c57b0..ed5d000 100644
--- a/src/emap/send.c
+++ b/src/emap/send.c
@@ -376,6 +376,19 @@ void send_online_list(int fd, const char *buf, unsigned size)
WFIFOSET (fd, len);
}
+void send_online_list2(int fd, const char *buf, unsigned size)
+{
+ if (!buf)
+ return;
+ const unsigned int len = size + 4 + 1;
+ WFIFOHEAD (fd, len);
+ WFIFOW (fd, 0) = 0xb11 + evolPacketOffset;
+ WFIFOW (fd, 2) = len;
+ memcpy (WFIFOP (fd, 4), buf, size);
+ WFIFOB (fd, size + 4) = 0;
+ WFIFOSET (fd, len);
+}
+
void send_client_command(struct map_session_data *sd, const char *const command)
{
if (!command)