summaryrefslogtreecommitdiff
path: root/src/elogin/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/elogin/parse.c')
-rw-r--r--src/elogin/parse.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/elogin/parse.c b/src/elogin/parse.c
index 3a015d1..657ef7e 100644
--- a/src/elogin/parse.c
+++ b/src/elogin/parse.c
@@ -67,9 +67,22 @@ int elogin_parse_client_login_pre(int *fdPtr,
return 1;
}
+ short *ptr = RFIFOP(fd, 2);
+ if (*ptr == 20)
+ *ptr = clientVersion;
return 0;
}
+int elogin_parse_client_login_post(int retVal, int *fdPtr,
+ struct login_session_data* sd,
+ const char *const ip __attribute__ ((unused)))
+{
+ sd = (struct login_session_data*)session[*fdPtr]->session_data;
+ if (sd)
+ sd->version = clientVersion;
+ return retVal;
+}
+
void elogin_parse_client_login2(int fd)
{
char username[NAME_LENGTH];