summaryrefslogtreecommitdiff
path: root/src/emap/send.c
diff options
context:
space:
mode:
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)