diff options
author | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-01-08 02:40:11 +0000 |
---|---|---|
committer | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-01-08 02:40:11 +0000 |
commit | f62b6843b9d53d7309acc2a92452f797fa0b8fe5 (patch) | |
tree | 97107724c1290d028ab81623db7d4116f9b084d6 | |
parent | ea9b2cab036a10e0fe57f8a804d67269df742223 (diff) | |
download | hercules-f62b6843b9d53d7309acc2a92452f797fa0b8fe5.tar.gz hercules-f62b6843b9d53d7309acc2a92452f797fa0b8fe5.tar.bz2 hercules-f62b6843b9d53d7309acc2a92452f797fa0b8fe5.tar.xz hercules-f62b6843b9d53d7309acc2a92452f797fa0b8fe5.zip |
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
-rw-r--r-- | Changelog.txt | 2 | ||||
-rw-r--r-- | src/char/char.c | 9 |
2 files changed, 11 insertions, 0 deletions
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; } |