Skip to content

Commit 78ed3fe

Browse files
committed
Make convar custom_chat_show_steamid_on_join_leave client-sided
1 parent 54281ca commit 78ed3fe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lua/autorun/sh_custom_chat.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@ CreateConVar( "custom_chat_enable_friend_messages", "1", bit.bor( FCVAR_ARCHIVE,
7373
CreateConVar( "custom_chat_enable_dms", "1", bit.bor( FCVAR_ARCHIVE, FCVAR_REPLICATED, FCVAR_NOTIFY ),
7474
"Allow players to chat with eachother privately.", 0, 1 )
7575

76-
CreateConVar( "custom_chat_show_steamid_on_join_leave", "0", bit.bor( FCVAR_ARCHIVE, FCVAR_REPLICATED, FCVAR_NOTIFY ),
77-
"Should the SteamID be visible when showing join/leave messages?", 0, 1 )
76+
if CLIENT then
77+
CreateClientConVar( "custom_chat_show_steamid_on_join_leave", "0", true, false,
78+
"Should the SteamID be visible when showing join/leave messages?", 0, 1 )
79+
end
7880

7981
function CustomChat.Print( str, ... )
8082
MsgC( Color( 0, 123, 255 ), "[Custom Chat] ", Color( 255, 255, 255 ), string.format( str, ... ), "\n" )

0 commit comments

Comments
 (0)