Don't invoke chat message if it's a command
This commit is contained in:
parent
e657a02f7a
commit
d7e9ce8ff1
@ -480,7 +480,6 @@ namespace RageCoop.Server
|
||||
Packets.ChatMessage packet = new();
|
||||
packet.Unpack(data);
|
||||
|
||||
_worker.QueueJob(() => API.Events.InvokeOnChatMessage(packet, sender));
|
||||
ChatMessageReceived(packet.Username,packet.Message, sender);
|
||||
}
|
||||
break;
|
||||
@ -783,7 +782,9 @@ namespace RageCoop.Server
|
||||
return;
|
||||
}
|
||||
message = message.Replace("~", "");
|
||||
|
||||
|
||||
_worker.QueueJob(() => API.Events.InvokeOnChatMessage(packet, sender));
|
||||
|
||||
var msg=MainNetServer.CreateMessage();
|
||||
new Packets.ChatMessage()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user