Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
thegrb93 authored Oct 25, 2024
1 parent 601cffa commit a180f29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/starfall/sflib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1547,7 +1547,7 @@ function SF.CheckSound(ply, path)
if #path>260 then SF.Throw("Sound path too long!", 3) end
if string.match(path, "[\"?']") then SF.Throw("Sound path contains invalid characters!", 3) end

-- Extract sound flags. Only allowed flags are '<', '>', '^', ')'
-- Extract sound flags. Only allowed flags are '@' '#' '<', '>', '^', ')'
local flags, checkpath = string.match(path, "^([^%w_/%.]*)(.*)")
if #flags>2 or string.match(flags, "[^@#<>%^%)]") then
SF.Throw("Invalid sound flags! "..flags, 3)
Expand Down

0 comments on commit a180f29

Please sign in to comment.