mirror of
https://github.com/SoDOff-Project/sodoff-mmo.git
synced 2025-10-11 08:18:49 -07:00
Update ChatMessageHandler.cs
This commit is contained in:
parent
15aacc282e
commit
2d86d32275
@ -38,7 +38,7 @@ class ChatMessageHandler : CommandHandler {
|
||||
Console.WriteLine("Banned message from " + client.PlayerData.Uid + " (" + client.PlayerData.DiplayName + "): \"" + messageFilter + "\", \"" + message + "\" in game: " + client.PlayerData.ZoneName);
|
||||
ClientFilter(client);
|
||||
if (!ChatFilter.ChatFilterConfiguration.blockedMessage.Equals(""))
|
||||
Chat(client, ChatFilter.ChatFilterConfiguration.blockedMessage);//This replaces the user's message with the message in the string. TODO: Add the string to the chatfilter json for the purpose of customization (How do I do that)
|
||||
Chat(client, ChatFilter.ChatFilterConfiguration.blockedMessage);//This replaces the user's message with the message in the string.
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
@ -48,6 +48,7 @@ class ChatMessageHandler : CommandHandler {
|
||||
ChatDisabled(client);
|
||||
}
|
||||
else
|
||||
|
||||
{
|
||||
Console.WriteLine("Message from " + client.PlayerData.Uid + " (" + client.PlayerData.DiplayName + "): \"" + messageFilter + "\", \"" + message + "\" in game: " + client.PlayerData.ZoneName);
|
||||
Chat(client, message);
|
||||
|
Loading…
x
Reference in New Issue
Block a user