From 77afc97b4d6e4caace275d8bc21a94525ad070e2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 15 Mar 2016 18:24:39 +0300 Subject: Show info about wrong packet size in chat if enabled show unimplimentaed packets. --- src/logger.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/logger.h') diff --git a/src/logger.h b/src/logger.h index 98cf2186a..19cf69ddb 100644 --- a/src/logger.h +++ b/src/logger.h @@ -56,6 +56,9 @@ #define UNIMPLIMENTEDPACKETFIELD(field) \ logger->unimplimented(msg.getId(), field) +#define WRONGPACKETSIZE \ + logger->unimplimented(CAST_U32(mId), mLength, mPos) + /** * The Log Class : Useful to write debug or info messages */ @@ -180,6 +183,10 @@ class Logger final void unimplimented(const int id, const int id2); + void unimplimented(const uint32_t id, + const uint32_t id2, + const uint32_t id3); + private: std::ofstream mLogFile; std::vector mDelayedLog; -- cgit v1.2.3-70-g09d2