feat(Core/Opcodes): Implement CMSG_COMPLAIN & CMSG_CALENDAR_COMPLAIN (#25329)
Co-authored-by: Dmitri Petmanson <53072+laizerox@users.noreply.github.com> Co-authored-by: Benjamin Jackson <38561765+heyitsbench@users.noreply.github.com>
This commit is contained in:
@@ -1157,8 +1157,21 @@ void WorldSession::HandleComplainOpcode(WorldPackets::Misc::Complain& packet)
|
||||
// Complaint Received message
|
||||
SendPacket(WorldPackets::Misc::ComplainResult().Write());
|
||||
|
||||
LOG_DEBUG("network", "REPORT SPAM: type {}, {}, unk1 {}, unk2 {}, unk3 {}, unk4 {}, message {}",
|
||||
packet.SpamType, packet.SpammerGuid.ToString(), packet.Unk1, packet.Unk2, packet.Unk3, packet.Unk4, packet.Description);
|
||||
if (sWorld->getBoolConfig(CONFIG_LOGSPAMREPORTS))
|
||||
{
|
||||
CharacterDatabasePreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_INS_SPAM_REPORT);
|
||||
|
||||
stmt->SetData(0, packet.SpamType);
|
||||
stmt->SetData(1, packet.SpammerGuid.GetCounter());
|
||||
stmt->SetData(2, packet.Unk1);
|
||||
stmt->SetData(3, packet.MailIdOrMessageType);
|
||||
stmt->SetData(4, packet.ChannelId);
|
||||
stmt->SetData(5, packet.SecondsSinceMessage);
|
||||
stmt->SetData(6, packet.Description);
|
||||
stmt->SetData(7, GameTime::GetGameTime().count());
|
||||
|
||||
CharacterDatabase.Execute(stmt);
|
||||
}
|
||||
}
|
||||
|
||||
void WorldSession::HandleRealmSplitOpcode(WorldPacket& recv_data)
|
||||
|
||||
Reference in New Issue
Block a user