Serverside disable, temporary cl rewording

This commit is contained in:
Brandon Sturgeon 2021-02-20 01:46:13 -08:00 committed by Brandon Sturgeon
parent 444eef15a0
commit d24e58cb24
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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