mirror of
https://github.com/Michatec/ptelevision.git
synced 2026-03-31 23:46:30 +02:00
Update config.lua
This commit is contained in:
10
config.lua
10
config.lua
@@ -27,9 +27,11 @@ 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()
|
||||
@@ -37,4 +39,4 @@ Config.Events = { -- Events for approving broadcasts / interactions (due to popu
|
||||
Broadcast = function(source, data, cb) -- cb() to approve.
|
||||
cb()
|
||||
end,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user