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).
|
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,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user