Skip to content

Commit a1f23dc

Browse files
committed
Fix "say" and "say_team" binds being ignored
1 parent 865684a commit a1f23dc

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lua/custom_chat/client/main.lua

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,9 +473,15 @@ local function CustomChat_OnChatText( _, _, text, textType )
473473
return true
474474
end
475475

476+
local messageBinds = {
477+
["messagemode"] = true,
478+
["messagemode2"] = true,
479+
["say"] = true,
480+
["say_team"] = true
481+
}
482+
476483
local function CustomChat_OnPlayerBindPress( _, bind, pressed )
477-
if not pressed then return end
478-
if bind ~= "messagemode" and bind ~= "messagemode2" then return end
484+
if not pressed or not messageBinds[bind] then return end
479485

480486
-- Don't open if playable piano is blocking input
481487
if IsValid( LocalPlayer().Instrument ) then return end

0 commit comments

Comments
 (0)