Fix some unhandled opcode output messages

This commit is contained in:
Akkadius 2015-01-18 00:25:23 -06:00
parent 726b3a33f5
commit 0b687e4779

View File

@ -458,9 +458,8 @@ int Client::HandlePacket(const EQApplicationPacket *app)
args.push_back(const_cast<EQApplicationPacket*>(app)); args.push_back(const_cast<EQApplicationPacket*>(app));
parse->EventPlayer(EVENT_UNHANDLED_OPCODE, this, "", 0, &args); parse->EventPlayer(EVENT_UNHANDLED_OPCODE, this, "", 0, &args);
char buffer[64]; char buffer[64];
logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::Client_Server_Packet, "Unhandled incoming opcode: %s", buffer); logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::Client_Server_Packet, "Unhandled incoming opcode: 0x%04x", app->GetOpcode());
if (logger.log_settings[EQEmuLogSys::Client_Server_Packet].log_to_console > 0){ if (logger.log_settings[EQEmuLogSys::Client_Server_Packet].log_to_console > 0){
app->build_header_dump(buffer); app->build_header_dump(buffer);
if (app->size < 1000) if (app->size < 1000)