summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index e472c343a..a8db3a2b8 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -16113,9 +16113,8 @@ static int clif_parse(int fd)
} else {
// check authentification packet to know packet version
packet_ver = clif_guess_PacketVer(fd, 0, &err);
- if( err )
- {// failed to identify packet version
- ShowInfo("clif_parse: Disconnecting session #%d with unknown packet version%s.\n", fd, (
+ if( err ) {// failed to identify packet version
+ ShowInfo("clif_parse: Disconnecting session #%d with unknown packet version%s (p:0x%04x|l:%d).\n", fd, (
err == 1 ? "" :
err == 2 ? ", possibly for having an invalid account_id" :
err == 3 ? ", possibly for having an invalid char_id." :
@@ -16124,14 +16123,16 @@ static int clif_parse(int fd)
err == 5 ? ", possibly for having an invalid client_tick." :
*/
err == 6 ? ", possibly for having an invalid sex." :
- ". ERROR invalid error code"));
+ ". ERROR invalid error code"), cmd, RFIFOREST(fd));
WFIFOHEAD(fd,packet_len(0x6a));
WFIFOW(fd,0) = 0x6a;
WFIFOB(fd,2) = 3; // Rejected from Server
WFIFOSET(fd,packet_len(0x6a));
+
#ifdef DUMP_INVALID_PACKET
ShowDump(RFIFOP(fd,0), RFIFOREST(fd));
#endif
+
RFIFOSKIP(fd, RFIFOREST(fd));
set_eof(fd);
return 0;