Skip to content

Commit 40a7692

Browse files
committed
Fix linter warnings from #27
1 parent 7f61d84 commit 40a7692

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lua/custom_chat/client/join_leave.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ hook.Add( "player_connect_client", "CustomChat.ShowConnectMessages", function( d
2626
local steamId = data.networkid
2727
local isBot = data.bot == 1
2828

29-
if (isBot and (not JoinLeave.botConnectDisconnect)) then return end
29+
if isBot and not JoinLeave.botConnectDisconnect then return end
3030

3131
-- Only use a player block if Custom Chat is enabled
3232
if CustomChat.IsEnabled() then
@@ -57,7 +57,7 @@ hook.Add( "player_disconnect", "CustomChat.ShowDisconnectMessages", function( da
5757
local steamId = data.networkid
5858
local isBot = data.bot == 1
5959

60-
if (isBot and (not JoinLeave.botConnectDisconnect)) then return end
60+
if isBot and not JoinLeave.botConnectDisconnect then return end
6161

6262
-- Only use a player block if Custom Chat is enabled
6363
if CustomChat.IsEnabled() then
@@ -82,7 +82,7 @@ hook.Add( "player_disconnect", "CustomChat.ShowDisconnectMessages", function( da
8282
end, HOOK_LOW )
8383

8484
local function OnPlayerActivated( ply, steamId, name, color, absenceLength )
85-
if (ply:IsBot() and (not JoinLeave.botConnectDisconnect)) then return end
85+
if ply:IsBot() and not JoinLeave.botConnectDisconnect then return end
8686

8787
-- Only use a player block if Custom Chat is enabled
8888
if CustomChat.IsEnabled() then

0 commit comments

Comments
 (0)