forked from CFC-Servers/cfc_chat_transit
add hook to prevent chat messages
This commit is contained in:
parent
043dc20bd5
commit
a736ba707d
@ -1,6 +1,9 @@
|
||||
import guard from ChatTransit
|
||||
|
||||
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