Skip to content

Commit 18216d2

Browse files
committed
Move custom_chat_enable cvar creation to autorun lua file
1 parent 78ed3fe commit 18216d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lua/autorun/sh_custom_chat.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ CreateConVar( "custom_chat_enable_dms", "1", bit.bor( FCVAR_ARCHIVE, FCVAR_REPLI
7474
"Allow players to chat with eachother privately.", 0, 1 )
7575

7676
if CLIENT then
77+
CreateClientConVar( "custom_chat_enable", "1", true, false )
78+
7779
CreateClientConVar( "custom_chat_show_steamid_on_join_leave", "0", true, false,
7880
"Should the SteamID be visible when showing join/leave messages?", 0, 1 )
7981
end

lua/custom_chat/client/main.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
CreateClientConVar( "custom_chat_enable", "1", true, false )
2-
31
-- Keep track of the original chat functions
42
CustomChat.DefaultOpen = CustomChat.DefaultOpen or chat.Open
53
CustomChat.DefaultClose = CustomChat.DefaultClose or chat.Close

0 commit comments

Comments
 (0)