mirror of
https://github.com/CFC-Servers/cfc_chat_transit.git
synced 2025-03-04 03:03:05 -05:00
Add hook to prevent relaying chat messages
This commit is contained in:
parent
501b932281
commit
b7696dee32
@ -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 == ""
|
||||
|
Loading…
Reference in New Issue
Block a user