Skip to content

Commit

Permalink
Update config.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
PickleModifications authored Dec 3, 2022
1 parent fa8cb06 commit 136c939
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,16 @@ Config.BannedWords = {

Config.Events = { -- Events for approving broadcasts / interactions (due to popular demand).
ScreenInteract = function(source, data, key, value, cb) -- cb() to approve.
for i=1, #Config.BannedWords do
if string.find(value.url, Config.BannedWords) then
return
if value.url then
for i=1, #Config.BannedWords do
if string.find(value.url, Config.BannedWords[i]) then
return
end
end
end
cb()
end,
Broadcast = function(source, data, cb) -- cb() to approve.
cb()
end,
}
}

0 comments on commit 136c939

Please sign in to comment.