From f62b6843b9d53d7309acc2a92452f797fa0b8fe5 Mon Sep 17 00:00:00 2001 From: celest Date: Sat, 8 Jan 2005 02:40:11 +0000 Subject: Fixed char server rejecting i'm alive packet git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@932 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog.txt | 2 ++ src/char/char.c | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/Changelog.txt b/Changelog.txt index d19f93fca..09b15be74 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,5 +1,7 @@ Date Added 01/07 + * The TXT char server was rejecting login's "i'm alive" packet and disconnecting + it... fixed [celest] * Stall_time wasn't being read in login_athena at all (not by the login server, because the code didn't read it, nor by TXT map server, since its in the SQL inter_athena.conf reading)... so moved it to inter_athena.conf, and diff --git a/src/char/char.c b/src/char/char.c index f2d4b33d2..cdef7bc8b 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -1958,7 +1958,16 @@ int parse_tologin(int fd) { RFIFOSKIP(fd,RFIFOW(fd,2)); break; + // login-server alive packet + case 0x2718: + if (RFIFOREST(fd) < 2) + return 0; + // do whatever it's supposed to do here + RFIFOSKIP(fd,2); + break; + default: + printf("parse_tologin: unknown packet %x! \n", RFIFOW(fd,0)); session[fd]->eof = 1; return 0; } -- cgit v1.2.3-70-g09d2