Skip to content

Commit de32207

Browse files
committed
Merge pull request #413 from Starfox64/master
Fixed PM being visible to everyone
2 parents d1483ac + 6c617af commit de32207

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

gamemode/libs/sh_chatbox.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,10 @@ if (CLIENT) then
231231

232232
hook.Add("ChatTextChanged", "nut_Typing", function(text)
233233
if (nut.config.showTypingText) then
234+
if (string.sub(text, 1, 3) == "/pm") then
235+
text = "PM..."
236+
end
237+
234238
if (nextSend < CurTime()) then
235239
netstream.Start("nut_Typing", text)
236240
nextSend = CurTime() + 0.25

0 commit comments

Comments
 (0)