feat: add chat behaviors

Tested that models can correctly send chat messages, silently and publically.  Tested as well that the filter is used by the client for behaviors and added a security check to not broadcast messages that fail the check if words are removed.
This commit is contained in:
David Markowitz
2025-06-17 01:03:10 -07:00
parent 0fb028e129
commit ddef614d11
12 changed files with 61 additions and 1 deletions

View File

@@ -1367,6 +1367,7 @@ void HandlePacket(Packet* packet) {
std::string sMessage = GeneralUtils::UTF16ToWTF8(chatMessage.message);
LOG("%s: %s", playerName.c_str(), sMessage.c_str());
ChatPackets::SendChatMessage(packet->systemAddress, chatMessage.chatChannel, playerName, user->GetLoggedInChar(), isMythran, chatMessage.message);
PropertyManagementComponent::Instance()->OnChatMessageReceived(sMessage);
}
break;