summaryrefslogtreecommitdiff
path: root/src/login/send.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/login/send.c')
-rw-r--r--src/login/send.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/login/send.c b/src/login/send.c
index 257376f..ebc2e4c 100644
--- a/src/login/send.c
+++ b/src/login/send.c
@@ -12,6 +12,7 @@
#include "../../../common/strlib.h"
#include "../../../login/login.h"
+#include "login/config.h"
#include "login/send.h"
void send_server_version(int fd)
@@ -23,3 +24,15 @@ void send_server_version(int fd)
WFIFOL(fd, 8) = 1; // server version
WFIFOSET(fd, WFIFOW(fd,2));
}
+
+void send_update_host(int fd)
+{
+ if (!update_server)
+ return;
+ const int sz = 4 + strlen(update_server);
+ WFIFOHEAD(fd, sz);
+ WFIFOW(fd, 0) = 0x63;
+ WFIFOW(fd, 2) = sz;
+ memcpy(WFIFOP (fd, 4), update_server, sz);
+ WFIFOSET(fd, sz);
+}