summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-01-08 02:40:11 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-01-08 02:40:11 +0000
commitf62b6843b9d53d7309acc2a92452f797fa0b8fe5 (patch)
tree97107724c1290d028ab81623db7d4116f9b084d6 /src/char/char.c
parentea9b2cab036a10e0fe57f8a804d67269df742223 (diff)
downloadhercules-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
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c9
1 files changed, 9 insertions, 0 deletions
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;
}