mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-25 04:22: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); \
|
log_hex_mob(type, this, data, len); \
|
||||||
} \
|
} \
|
||||||
} while(false)
|
} 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
|
#endif
|
||||||
|
|
||||||
extern void log_enable(LogType t);
|
extern void log_enable(LogType t);
|
||||||
|
|||||||
@ -401,7 +401,6 @@ int Client::HandlePacket(const EQApplicationPacket *app)
|
|||||||
char buffer[64];
|
char buffer[64];
|
||||||
app->build_header_dump(buffer);
|
app->build_header_dump(buffer);
|
||||||
mlog(CLIENT__NET_IN_TRACE, "Dispatch opcode: %s", buffer);
|
mlog(CLIENT__NET_IN_TRACE, "Dispatch opcode: %s", buffer);
|
||||||
mpkt(CLIENT__NET_IN_TRACE, app);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EmuOpcode opcode = app->GetOpcode();
|
EmuOpcode opcode = app->GetOpcode();
|
||||||
@ -5835,7 +5834,6 @@ void Client::Handle_OP_FriendsWho(const EQApplicationPacket *app)
|
|||||||
void Client::Handle_OP_GetGuildMOTD(const EQApplicationPacket *app)
|
void Client::Handle_OP_GetGuildMOTD(const EQApplicationPacket *app)
|
||||||
{
|
{
|
||||||
mlog(GUILDS__IN_PACKETS, "Received OP_GetGuildMOTD");
|
mlog(GUILDS__IN_PACKETS, "Received OP_GetGuildMOTD");
|
||||||
mpkt(GUILDS__IN_PACKET_TRACE, app);
|
|
||||||
|
|
||||||
SendGuildMOTD(true);
|
SendGuildMOTD(true);
|
||||||
|
|
||||||
@ -7219,7 +7217,7 @@ void Client::Handle_OP_GuildCreate(const EQApplicationPacket *app)
|
|||||||
void Client::Handle_OP_GuildDelete(const EQApplicationPacket *app)
|
void Client::Handle_OP_GuildDelete(const EQApplicationPacket *app)
|
||||||
{
|
{
|
||||||
mlog(GUILDS__IN_PACKETS, "Received OP_GuildDelete");
|
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()))
|
if (!IsInAGuild() || !guild_mgr.IsGuildLeader(GuildID(), CharacterID()))
|
||||||
Message(0, "You are not a guild leader or not in a guild.");
|
Message(0, "You are not a guild leader or not in a guild.");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user