Add hook to prevent relaying chat messages

This commit is contained in:
Pierce 2022-01-22 18:55:24 -05:00
parent 501b932281
commit b7696dee32
No known key found for this signature in database
GPG Key ID: EC79465B0E865E47

View File

@ -1,4 +1,7 @@
ChatTransit.ReceiveMessage = (ply, text, teamChat) =>
shouldRelay = hook.Run "CFC_ChatTransit_ShouldRelayChatMessage", ply, text, teamChat
return if shouldRelay == false
return if teamChat
return unless text
return if text == ""