Update config.lua

This commit is contained in:
Pickle
2022-12-03 14:02:51 -05:00
committed by GitHub
parent fa8cb06f42
commit 136c939701

View File

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