forked from CFC-Servers/cfc_chat_transit
Serverside disable, temporary cl rewording
This commit is contained in:
parent
444eef15a0
commit
d24e58cb24
@ -35,7 +35,8 @@ hook.Add "InitPostEntity", "CFC_ChatTransit_AlertRemoteMessagePreference", ->
|
||||
alertPreference shouldReceiveRemoteMessages\GetBool!
|
||||
|
||||
populatePanel = (panel) ->
|
||||
label = "Should show remote messages (i.e. from Discord)"
|
||||
--label = "Should show remote messages (i.e. from Discord)"
|
||||
label = "Should show remote messages"
|
||||
|
||||
with panel\CheckBox label, "cfc_chat_transit_remote_messages"
|
||||
.OnChange = (_, val) -> alertPreference val
|
||||
|
@ -8,6 +8,8 @@ AddNetworkString "CFC_ChatTransit_RemoteMessageReceive"
|
||||
IsValid = IsValid
|
||||
recipients = RecipientFilter!
|
||||
|
||||
shouldTransmit = CreateConVar "cfc_chat_transit_should_transmit_remote", 0, FCVAR_ARCHIVE, "Should transmit remote messages", 0, 1
|
||||
|
||||
Receive "CFC_ChatTransit_RemoteMessagePreference", (_, ply) ->
|
||||
shouldReceive = ReadBool!
|
||||
|
||||
@ -16,6 +18,8 @@ Receive "CFC_ChatTransit_RemoteMessagePreference", (_, ply) ->
|
||||
modify recipients, ply
|
||||
|
||||
broadcastMessage = (ply, cmd, args, argStr) ->
|
||||
return unless shouldTransmit\GetBool!
|
||||
|
||||
return if IsValid ply
|
||||
|
||||
author = rawget args, 1
|
||||
|
Loading…
Reference in New Issue
Block a user