summaryrefslogtreecommitdiff
path: root/src/login/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/login/parse.c')
-rw-r--r--src/login/parse.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/login/parse.c b/src/login/parse.c
index 7b6bb11..b8f25fe 100644
--- a/src/login/parse.c
+++ b/src/login/parse.c
@@ -13,6 +13,7 @@
#include "../../../login/login.h"
#include "login/parse.h"
+#include "login/send.h"
int clientVersion = 0;
@@ -30,12 +31,7 @@ void login_parse_version(int fd)
return;
}
- WFIFOHEAD(fd, 4 + 8);
- WFIFOW(fd, 0) = 0x7531;
- WFIFOW(fd, 2) = 4 + 8;
- WFIFOL(fd, 4) = 0; // unused
- WFIFOL(fd, 8) = 1; // server version
- WFIFOSET(fd, WFIFOW(fd,2));
+ send_server_version(fd);
}
int elogin_parse_client_login_pre(int *fd, struct login_session_data* sd, const char *const ip)