mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-20 21:02:26 +00:00
Delete mpkt and some calls to it
This commit is contained in:
parent
a6c521a73e
commit
449c12d6c2
@ -156,14 +156,6 @@ extern void log_raw_packet(LogType type, uint16 seq, const BasePacket *p);
|
||||
log_hex_mob(type, this, data, len); \
|
||||
} \
|
||||
} while(false)
|
||||
extern void log_packet_mob(LogType type, Mob *who, const BasePacket *p);
|
||||
#define mpkt( type, packet) \
|
||||
do { \
|
||||
if(1) \
|
||||
if(log_type_info[ type ].enabled) { \
|
||||
log_packet_mob(type, this, packet); \
|
||||
} \
|
||||
} while(false)
|
||||
#endif
|
||||
|
||||
extern void log_enable(LogType t);
|
||||
|
||||
@ -401,7 +401,6 @@ int Client::HandlePacket(const EQApplicationPacket *app)
|
||||
char buffer[64];
|
||||
app->build_header_dump(buffer);
|
||||
mlog(CLIENT__NET_IN_TRACE, "Dispatch opcode: %s", buffer);
|
||||
mpkt(CLIENT__NET_IN_TRACE, app);
|
||||
}
|
||||
|
||||
EmuOpcode opcode = app->GetOpcode();
|
||||
@ -5835,7 +5834,6 @@ void Client::Handle_OP_FriendsWho(const EQApplicationPacket *app)
|
||||
void Client::Handle_OP_GetGuildMOTD(const EQApplicationPacket *app)
|
||||
{
|
||||
mlog(GUILDS__IN_PACKETS, "Received OP_GetGuildMOTD");
|
||||
mpkt(GUILDS__IN_PACKET_TRACE, app);
|
||||
|
||||
SendGuildMOTD(true);
|
||||
|
||||
@ -7219,7 +7217,7 @@ void Client::Handle_OP_GuildCreate(const EQApplicationPacket *app)
|
||||
void Client::Handle_OP_GuildDelete(const EQApplicationPacket *app)
|
||||
{
|
||||
mlog(GUILDS__IN_PACKETS, "Received OP_GuildDelete");
|
||||
mpkt(GUILDS__IN_PACKET_TRACE, app);
|
||||
mpkt(GUILDS__IN_PACKET_TRACE, app);s
|
||||
|
||||
if (!IsInAGuild() || !guild_mgr.IsGuildLeader(GuildID(), CharacterID()))
|
||||
Message(0, "You are not a guild leader or not in a guild.");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user